This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Iterating a HashMap

 
Khsitiz sharma
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

can any one tell me how to iterate over a HashMap which is declared as
Map<Person,Integer> pHashMap=new HashMap<Person,Integer>();
Here Person is an entity and contains Name, address and age attribute.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSTL's c:forEach tag can iterate over such a structure.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic