File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Nested HashMap in logic:iterate

 
pavanasree vasireddy
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Frameworks forum.
 
forum guest
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use <logic:iterate> inside <logic:iterate> should work.
 
pavanasree vasireddy
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP file



Java File


This will help you.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HashMap with <logic:iterate> .. get value from hashmap

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic