yes , the algorithm would be like this.....
Its an ugly way but it works
<select>
loop starts
--
<%
String userselected = "";
If the user is equal to the name of this option then
userselected = "selected";
%>
<option value="1" ><%=userselected %> </option>
-
loop ends
</select>
Something like that, I don't know ur variables so this is one sloppy algorithm
:)