GeeCON Prague 2014*
The moose likes Struts and the fly likes logic iterate linkedhashmap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic iterate linkedhashmap" Watch "logic iterate linkedhashmap" New topic
Author

logic iterate linkedhashmap

seshu Palamanti
Ranch Hand

Joined: Jul 03, 2004
Posts: 59
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
GeeCON Prague 2014
 
subject: logic iterate linkedhashmap