This is more of an HTML question rather than a JSP question,
You have to add the parameter selected="selected" for the Option element you want to be selected by default.
An example is as follows:-
Consider you combobox has four elements Volvo, Saab, Fiat and Audi and you want Fiat selected by default, then you would have to do the following:-
<html>
<body>
<form action="">
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat" selected="selected">Fiat</option>
<option value="audi">Audi</option>
</select>
</form>
</body>
</html>
stephen84s
Nearly a Posting Virtuoso
1,443 posts since Jul 2007
Reputation Points: 668
Solved Threads: 154
is used with Apache Struts something like this example (There is no explanation to code, just reference from which book the code come )
For stuts tutorial on form you may consider look at this tutorial , maybe this from from IBM (based on Websphere, but general logic can be re-used) or Advanced Forms Handling in Struts 1.1 (includes example of code in zip form)
peter_budo
Code tags enforcer
15,432 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
I have no idea about the structure of your database what sort of data you keep but surly somewhere along you looking up/checking to what group user belong so you would be able to get this info and incorporate it in your selection...
peter_budo
Code tags enforcer
15,432 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901