struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From O_Parthasarathy Kesavaraj <Parthasarat...@PLANETASIA.COM>
Subject RE: logic:iterate using HashMap
Date Tue, 24 Jun 2003 14:46:42 GMT


> ----------
> From: 	Gemes Tibor[SMTP:tib@i-trade.hu]
> Reply To: 	Struts Users Mailing List
> Sent: 	Tuesday, June 24, 2003 7:46 PM
> To: 	Struts Users Mailing List
> Subject: 	Re: logic:iterate using HashMap
> 
> O_Parthasarathy Kesavaraj írta:
	Thanks Tib.I did look at the docs.But i got struck up.If u have any
sample code pls send.
	Regards
	Partha
> >How to iterate thro HashMap using logic:iterate?
> >  
> >
> You did not look into the docs, did you?
> 
> http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate
> 
> Normally, each object exposed by the iterate tag is an element of the 
> underlying collection you are iterating over. However, if you iterate 
> over a |Map|, the exposed object is of type |Map.Entry| that has two 
> properties:
> 
>     * |key| - The key under which this item is stored in the underlying
> Map.
>     * |value| - The value that corresponds to this key.
> 
> 
> Tib
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message