Hi i am trying to create a JSP class which will redirct but for some reason i keep getting an error when eneterning the correct info. i think

System.err.println("DEBUG: Query: " + selectSQL);
	    Statement stmt = conn.createStatement();
	    ResultSet rs1 = stmt.executeQuery(selectSQL);
		while(rs1.next())
		{
			u += rs1.getString("U");
			p += rs1.getString("P");
		if(U.equals(u) && P.equals(p))
		{
			
			response.sendRedirect("/Page.html");
		}
		}

for some reason i don't think its going in to the if statement any idea why?

fixed now

i didn't close the connection

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.