You just have your html and java code intermingled here and need to fix the tags
while (rst2.next ()) {
%>
<option value='<%= rst2.getString("state") %>'></option>
<%
}
rst2.close();
or use out.write() to generate the html option tags instead.
(if jwenting pops in though he will tell you not to be using java in jsp pages at all, which is consistent with the current recommendations in JSP 2.0)
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Offline 6,761 posts
since May 2007