if(ch==0) { System.out.println("incorrect username or password "); // what code should i write here doing the above same } else { //if username and password match System.out.println("logged in as "+cstmt.getString(3)); session.setAttribute("user",cstmt.getString(3)); session.setAttribute("username",cstmt.getString(4)); response.sendRedirect("Home.jsp"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)