Hi, 

I've encountered very strange behaviour of struts: 
<s:property value="myMap['testKey']"/> adds new entry to myMap - ('testKey',
''). Why??

Details:

...in My action:
private Map<String, String> myMap = new HashMap<String, String>();  // it's
empty

...in jsp:
<s:property value="myMap"/>   // displays  {}  - it's ok because is empty
<s:property value="myMap['testKey']"/>  // displays  nothing  as it should
be
<s:property value="myMap"/>   // displays {testKey=}  - ?? WHY? 

What's wrong?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Strange-behaviour-----s%3Aproperty--modifies-Map----tp14844942p14844942.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to