On Mon, 4 Jun 2001, Shamdasani Nimmi-ANS004 wrote:

> Steve,
>
> This is how I used a HashMap in a jsp:
>
> <logic:iterate id="item" name="user_list" property="userList" >
>
> <TR>
> <TD><bean:write name="item" property="key"/></TD>
> <TD><bean:write name="item" property="value"/></TD>
> </TR>
>
> </logic:iterate>
>
> getUserList() method in my user_list bean returns a HashMap.
>
> Hope this helps.
>
> -Nimmi

 Hi Nimmi. Your example would work fine if I didn't care about the order
in which the key/value pairs are displayed. Unfortunately, I need to
display them in a particular order (given by a String[] of keys).

Reply via email to