Hello All,

I'm making a simple client database using JSP's and servlets. I have a jsp, register.jsp, which is called either with no data, or if some of the data is wrong after being validated (like the captcha response).

Here's what I'm trying to do:

I want to create a scriptlet that examines the object being sent back to the page. If (user.getState().equals("Nebraska")) - I want NE on my combo box to be preselected (because I don't want my users to have to fill out all of the information on the form again if their captcha reply is wrong).

Right now I have (for the radio option):

Code:
<input type="radio" name="ta" value="In person" <% if (user.getTalkAvailability().equals("In person")) { %>selected<% } %>>In person
but it's not working. Any ideas?

I have similar code for the state fields in the combo box.

-Sam