hi my_aro,
From whatever I could understand i think this should help you out.
<html:select property="location" styleClass="textfield">
<html
ption value="India"/>
<html
ption value="Australia"/>
<html
ption value="Japan"/>
<% for (i =0;i<location.size();i++){ %>
<html
ption value="<%=location.get(i).toString()%>">
<%=location.get(i).toString()%>
</html
ption>
<%} %>
</html:select>
You may either use the hard coded values like in options 1,2,3 or you may fetch from a database and put into a collection(location) and then iterate it on the
JSP.
Hope it helps!