You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gemes Tibor <ti...@i-trade.hu> on 2003/06/24 16:16:07 UTC

Re: logic:iterate using HashMap

O_Parthasarathy Kesavaraj írta:

>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