It looks like you need something like:
ResultSet rs = ... <your executeQuery() here> ...
String Username = rs.getString("Username");
As the code you sent has it, there is nothing to hold the result of your
query.
Bob
-----Original Message-----
From: Graeme McLaren [mailto:[EMAIL PROTECTED]]
I have a form which is to be filled out to retrieve a username when a user
fills in their personal details. I'm getting the following error:
97. out.println(""+Username+"");
<------>
sql="SELECT Username FROM join11 WHERE('" +EappName+ "', '" +EappSurname+
"', '" +address+ "', '" +TownCity+ "', '" +Postcode+ "', '" +Phone+ "', '"
+email+ "' )";
out.println("<p>"+Username+"</p>");
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com