You didn't mention which version of
Struts you are using. Suppose your select tag looks like this
Now if your action looks like this (Struts 2)
Now it will work, the select box will be rendered using the catList list, then if you submit the page, the selected value will go into the category named
String. And then when the page will be generated again, the option whose value matches the value of category string, that value will be selected. Remember that you can define a different property to preselect a value using the value attribute of the select tag...