I haven't actually tried this, but would something like this work?

<select name="select">
<c:forEach items="vector" var="map">
 <option value="${map['field1']}">${map['field2']}</option>
</c:forEach>
</select>

You might need some <c:out>'s in there depending on your JSP version, but
it's probably a start.
 (*Chris*)

On 9/21/06, Venkata Phani Kumar <[EMAIL PROTECTED]> wrote:

Hi,
I have a Vector<HashMap>. Each HashMap holds two elements as key  'field1'
and 'filed2'.
Now in jsp page i have to iterate over above vector and have to construt
one combo box as below
<select name="">
    <option value="field1">field2</option>
</select>

could any body help how to display as above using <logic:iterate>
Regards
Venkata Phanikumar. G



Reply via email to