> This works:
> <c:out value="${myKey}"/> Output: E.g. 4711
[quoted text clipped - 10 lines]
> over. What I would like to achieve is something like:
> <c:set value="${myMap[myKey]}" var="myBean"/>
Odd. According to
<http://java.sun.com/javaee/5/docs/tutorial/doc/bnahq.html#bnahv>
> To refer to properties of a bean or an Enum instance, items of a
> collection, or attributes of an implicit object,
> you use the . or [] notation, which is similar to the notation used by ECMAScript.
...
> In contrast, an item in a Map can be accessed using a string literal key; no coercion is required:
>
> ${customer.orders["socks"]}
... and
<http://java.sun.com/javaee/5/docs/tutorial/doc/bnahq.html#bnain>
> ${departments[deptName]}
> The value of the entry named deptName in the departments map.

Signature
Lew
> This works:
> <c:out value="${myKey}"/> Output: E.g. 4711
[quoted text clipped - 15 lines]
> <c:out value="${row.myValue3}"/>
> </c:forEach>
what about ${myMap[4711]}?
If it is a String key, make sure that myKey is also a String.
Where does myKey come from? Might it be better to have whatever
constructs your model pull the value out of the map?
It should work the way you've tried, unless there is something else
going on.
Christine Mayer - 17 Oct 2007 13:54 GMT
Finnally, it worked out - it turned out that "A" != "a"!!!!!!! ;-)
Thx, Christine
Lew - 17 Oct 2007 15:01 GMT
> Finnally, it worked out - it turned out that "A" != "a"!!!!!!! ;-)
Was this something that turned up in a key comparison?

Signature
Lew
Daniel Pitts - 17 Oct 2007 15:22 GMT
> Finnally, it worked out - it turned out that "A" != "a"!!!!!!! ;-)
>
> Thx, Christine
Uh, yeah. That's always been true with Java :-).