0

I have the following code and want to open up adminhome jsp upon successful login instead of "success". Similarly if they fail I would like for it to remain on just the same page.

<%
    String adminusername = request.getParameter("adminusername");
    String adminpass = request.getParameter("adminpass");
    String adminconfpass = request.getParameter("adminconfpass");
    
    if (adminusername.equals("clubadmin") && adminpass.equals("123") && adminconfpass.equals("123")) {
        out.println("sucess");
    } else {
        out.println("fail");
    }
%>

Does anybody have any suggestions on how I can do this?

Pshemo
  • 118,400
  • 24
  • 176
  • 257
ckaj8
  • 23
  • 2

0 Answers0