I did write the code to
test the selection with existing list and marked as SELECTED, but still doesn't safe the state of the selection. Here is the code. I would appreciate any advice.
thanks
<select name="laboffice" onchange="findOwners()">
<option value="" > Select New Laboffice </option>
<%
MidasLabOfficeListClass _LabOfficeList = (MidasLabOfficeListClass) session.getValue("LabOfficeList");
for (int i = 0; i < _LabOfficeList.getLength(); i++) {
%>
<option value="<%= _LabOfficeList.getLabOffice(i).getLabOffice() %>"
<% if(request.getParameter("laboffice") == _LabOfficeList.getLabOffice(i).getLabOffice())
{
%>
SELECTED > <%= _LabOfficeList.getLabOffice(i).getLabOfficeDesc() %>
<%
}
else{ %>
> <%= _LabOfficeList.getLabOffice(i).getLabOfficeDesc() %>
<%
}
%>
</option>
<%} %>
</select>
</td>