am having the following jsp tag to display arraylist values.whereas the zoneInformation
contains [North, South, East, West]
.
<html:form action="addcountry">
<%@ page import="java.util.List"%>
<%@ page import="java.util.ArrayList"%>
<html:select property="zone" styleClass="text ui-widget-content ui-corner-all">
<% ArrayList ls = (ArrayList)request.getAttribute("zoneInformation");
for(int i=0;i<ls.size();i++){
%>
<html:option value=" "><%=ls.get(i)%></html:option>
<%}%>
</html:select>
</html:form>
how to set values to this dropdown list....?