You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Amol Yadwadkar <Am...@mphasis.com> on 2005/08/18 14:06:16 UTC
How to write logic:iterate for the Collection of HashMap.
Hello List,
I need to display the results stored in the Hashmap.
How can I achieve it by using logic:iterate ....
I know the way to do it for List type data.
Can anyone help me in this ?
Thankx n regds,
Amol
Re: How to write logic:iterate for the Collection of HashMap.
Posted by Jurn Ho <ju...@magicmonster.com>.
Hi Amol,
please see http://struts.apache.org/userGuide/struts-logic.html
especially the section on maps.
<logic:iterate id="element" name="myhashtable">
Next element is <bean:write name="element" property="value"/>
with key <bean:write name="element" property="key"/>
</logic:iterate>
Jurn
At 10:06 PM 18/08/2005, Amol Yadwadkar wrote:
>
>
>Hello List,
>
>I need to display the results stored in the Hashmap.
>
>How can I achieve it by using logic:iterate ....
>
>I know the way to do it for List type data.
>
>Can anyone help me in this ?
>
>Thankx n regds,
>
>Amol
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org