struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Siggelkow <bills...@bellsouth.net>
Subject Re: Logic:iterate
Date Wed, 09 Jun 2004 02:51:20 GMT
I am doing this from memory but I think it is right ...

Let' suppose that the HashMap is exposed on the bean by the method
Map getFooMap() {...}

then you can use on your JSP:

<logic:iterate id="entry" name="bean" property="fooMap">
   Key:<bean:write name="entry" property="key"/><br />
Value:<bean:write name="entry" property="value"/><br />
</logic:iterate>

Bill Siggelkow


Naresh Sharma wrote:

> Hi,
> 
> I am setting a bean from my action class, this bean class has one 
> hashmap object, and in jsp I want to print Hashmap "key" and "values" both.
> 
> Can you please suggest how to do that?
> 
> 
> Regards
> Naresh
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


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


Mime
View raw message