do something like this

<logic:iterate id="element" name="someBean" property="aMap"
scope="someScope">
        <option value="<bean:write name="element"
property="key.code"/>"><bean:write name="element"
property="key.description"/></option>
</logic:iterate>

aMap is a property of someBean which is a bean in someScope.

aMap is a class which has key, description as properties and has ("L",
"List"; "V", "Vector"; ... etc.,) kind of structure

chaks.

-----Original Message-----
From: shashi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 19 February 2003 4:58 PM
To: Struts Users Mailing List
Subject: how to use two parameter in logic:iterate


Hi

i am using the logic:iterate to display the content in <select> and want to
another array in the option value at the same time
I want
---
<select>
<option value="L">List</option>
<option value="V">Vector</option>
</select>

but using the <logic:iterate>
able to print this

<select>
<option value="0">List</option>
<option value="1">Vector</option>
</select>

what ever i have to use for first result

regards

Shashi



Reply via email to