Hello,
I was just wondering how to get value of html combo box in jsp page. My code for combo box is:
<select name="combo" size="1">
<%
List<Project> projects = mgr.getProjects();
for(Project project : projects){
%>
<option value="<%= project.getId()%>"><%= project.getName()%></option>
<%
}
%>
</select>
I thought combo.value might give me the value, but it throws exception.
Any help is appreciated.
Thanks.
I was just wondering how to get value of html combo box in jsp page. My code for combo box is:
<select name="combo" size="1">
<%
List<Project> projects = mgr.getProjects();
for(Project project : projects){
%>
<option value="<%= project.getId()%>"><%= project.getName()%></option>
<%
}
%>
</select>
I thought combo.value might give me the value, but it throws exception.
Any help is appreciated.
Thanks.