1) pass the "2" as a parameter in the GET or POST or SESSION variable and when building the combobox again, check each option to see if it matches the parameter you saved.
3)look at why you are refreshing the page. Is it possible to accomplish the same thing with Dynamic HTML or do you have to go back to the server for some reason?
Joined: Aug 26, 2004
Yes I need to refresh the page in order to load the values again from the database based on the combo box value which user selects.
When you submit the form, you should be able to get the value selected using request.getParameter("XXXXXX") . Then can set the value in request OR session and while displaying, can loop through the collection and mark the one that matches as SELECTED.
It should not be difficult, if you can show yout logic for populating the list box, we can provide further details