struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcello Savino" <Marcello.Sav...@aldebra.com>
Subject R: iterating Vector of HashMap using Logic:iterate
Date Thu, 21 Sep 2006 08:18:06 GMT

<html:select property="theVarHoldingFieldValue" >
<html:optionsCollection  property="theHashMap" label="key" />
</html:select>

Hih, Marcello
-----Messaggio originale-----
Da: Venkata Phani Kumar [mailto:venkata.p@ocimumbio.com] 
Inviato: giovedì 21 settembre 2006 9.18
A: Struts Users Mailing List
Oggetto: iterating Vector of HashMap using Logic:iterate

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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message