If you are using
JSP 2.0 you can use the ternary operator (?) of the EL to conditionally evaluate an expression. This makes it easy to conditionally include or exclude the "selected" attribute from the <option> based upon whether the values match or not.
You can also do it with <c:if> but it's much wordier.