wood burning stoves 2.0*
The moose likes JSP and the fly likes JSTL Get value from HashMap inside HashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL Get value from HashMap inside HashMap" Watch "JSTL Get value from HashMap inside HashMap" New topic
Author

JSTL Get value from HashMap inside HashMap

arunkumar subramanian
Ranch Hand

Joined: Jun 10, 2008
Posts: 32


The outerMap is set in Request object. In JSTL(JSP) I can get the value of outermap


I can see the values printed in JSP
{ONE_EXISTS=Y, TWO_EXISTS=Y}

How to retrieve the information of innerMap (ONE_EXISTS or TWO_EXISTS)? Please help.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
${requestScope.outerMap[1]['ONE_EXISTS']} should do it ...


JDBCSupport - An easy to use, light-weight JDBC framework -
arunkumar subramanian
Ranch Hand

Joined: Jun 10, 2008
Posts: 32
That works. Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: JSTL Get value from HashMap inside HashMap
 
Similar Threads
Populating HashMaps of HashMap of Objects
HashMap reference
Struggling with generics, "unchecked call to put()"
put float into hashMap
how to iterate a hashmap with key hashmap