creating list in dropdown using struts :
In action class
list.add(new LabelValueBean("ID","Name"));
In Jsp
<logic:present name="list" scope="session">
<td align="left">* Select Item</td>
<td>
<html:select property="selectedItem">
<html:option value="-1">Select</html:option>
<html:options collection="list" property="label" labelProperty="value" />
</html:select>
</td>
</tr>
<tr></tr>
</logic:present>
In Form :
getter and setter for selectedItem.
query : Now I want to retrieve ID and Name both in action class.I am able to
retrieve ID,But i want to retrieve both.
--
View this message in context:
http://www.nabble.com/creating-list-in-dropdown-using-struts-tp23130937p23130937.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]