This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes Nested HashMap in logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Nested HashMap in logic:iterate" Watch "Nested HashMap in logic:iterate" New topic
Author

Nested HashMap in logic:iterate

pavanasree vasireddy
Ranch Hand

Joined: Jun 12, 2004
Posts: 34
hello,

I would like to access values in the nested HashMaps in jsp with the help of <logic:iterate> tag. I have a hash map in which value for the key is again a HashMap. I want to retreive the values in the inner HashMap.


Thanks in Advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

Moving to the Frameworks forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
forum guest
Greenhorn

Joined: Mar 24, 2003
Posts: 16
Use <logic:iterate> inside <logic:iterate> should work.
pavanasree vasireddy
Ranch Hand

Joined: Jun 12, 2004
Posts: 34
I have written the code like this:
<logic:iterate id="leaves" name="leavessummary">
<bean:write name="leaves" property="key" />

and my value field has another HashMap as value i don't know how to use <logic: iterate> for the value field in a HashMap can u please give me the correct syntax of how to use it.


thank you
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
JSP file



Java File


This will help you.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
HashMap with <logic:iterate> .. get value from hashmap

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Nested HashMap in logic:iterate