You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vasumathi <va...@koensoft.com> on 2006/01/30 13:09:39 UTC

Regarding using HashMap in jsp

HI 
 Anyone can tell how to write the properties value of HashMap in <bean:write> 
using <logic:iterate>

Regards
vasu

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


Re: Regarding using HashMap in jsp

Posted by Laurie Harper <la...@holoweb.net>.
Laurie Harper wrote:
> This sort of question is best asked on the users list; the dev list is 
> intended for discussion of the development of the Struts projects rather 
> than on how to use them.

Oops, sorry about that bit... :-/


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


Re: Regarding using HashMap in jsp

Posted by Vasumathi <va...@koensoft.com>.
Hi 
 Thanks for your help.

Regards
vasu

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


Re: Regarding using HashMap in jsp

Posted by Laurie Harper <la...@holoweb.net>.
Vasumathi wrote:
> HI 
>  Anyone can tell how to write the properties value of HashMap in <bean:write> 
> using <logic:iterate>

This sort of question is best asked on the users list; the dev list is 
intended for discussion of the development of the Struts projects rather 
than on how to use them.

To answer your question, you want something similar to the following:

   <logic:iterate id="entry" collection="myMap">
     key: <bean:write name="entry.key"/>
     value: <bean:write name="entry.value"/>
   </logic:iterate>

L.


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