why isn’t the if statement working. It goes else part even if the username and password is in there.
String vusername = request.getParameter(“username”);
String vpassword = request.getParameter(“password”);
if((vusername != null) && (vusername.equals(“”))) {
response.sendRedirect(“
} else {
out.println(“<html>”);
out.println(“<head>”);
out.println(“<title>Login</title>”);
out.println(“</head>”);
out.println(“<BODY BGCOLOR=357EC7>”);
out.println(“<form method=POST>”);
out.println(“Invalid username/password”);
out.println(“<p><A style=color:black HREF=RegistrationServlet>Click here to return to Login Page</A></p>”);
out.println(“</form>”);
out.println(“</BODY></HTML>”);