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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSTL Get value from HashMap inside HashMap