Hi everyone,
I'm trying to learn Struts 2 and my current problem is about accessing a property of a javabean stored in a HashMap, from a jsp.
The HashMap is stored in the session. This is the code that I've tried:
The javabean that the Map returns has getState- and setState methods, so I thought the code above would work (as long as Struts can find the type of the javabean. I'm wondering whether this is the problem).
But maybe it's a syntax problem about the '#'s.
I have also tried to print out the value, using:
<s

roperty value = "#session.myMap[#thisValue].state"/>
But this prints nothing at all.
I've also tried
value = "%{#session.myMap[#thisValue].state}",
value = "#session.myMap[thisValue].state"
and
value = "#session.myMap[%{thisValue}].state
but none of them prints anything.
Please help me, anyone who can!
That would be really great!
/Ylva