This is how I have implemented the
<select name="doctype" id="doctype" class="textarea" onchange="fillLabel()">
<%
DocumentManager documentManager = new DocumentManager();
List keyTypes = documentManager.getAllKeyTypes();
Iterator ite = keyTypes.iterator();
while(ite.hasNext()){
Object[] row = (Object[]) ite.next();
%>
<option value="<%= row[1] %>"><%= row[0] %></option>
<%}%>
</select>
How do I persist the selected value when page got refreshed.
Thanks.