Thanks for the replies. I got the brackets right and it is working...sort of. Is there some trick when comparing a
String variable to a literal? I'm comparing the string variable which has the value from the database to a literal and it never matches (falls into the if). I know the values are the same because I can see the them in the debugger. Following is the
test code:
while (rs.next())
{
if (returnValue == "SEC")
{
stringValue="IN IF";
%>
<option selected value="IN IF"></option>
<%
}
else
stringValue="IN ELSE";
%>
<option value="IN ELSE "></option>
<%
}