This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic iterate linkedhashmap

 
seshu Palamanti
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a LinkedHashMap which contains the a collection of objects as key value pairs ( both are of the same object type) i need to iterate through them to de displayed in the page. Can any one please suggest the process.

Thanks in advance.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both the Struts <logic:iterate> and the JSTL <c:forEach> tags will iterate through an instance of the java.util.Map interface. The bean retrieved with each iteration is of type Map.Entry, which has a key and a value property.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic