jeudi 29 juin 2017

My jsp page only executes the else statement

I have the following login codes.

if (uname == "Abigail" && password=="Abby14"){
    response.sendRedirect("http://localhost:8080/Practical_4/member.jsp");
     }

 else {
   response.sendRedirect("http://localhost:8080/Practical_4/index.html");

 }

I realized that my jsp page treats the if-statement as if it's an else statement, and only executes the else-statement.

Aucun commentaire:

Enregistrer un commentaire