<%@ Pagelanguage= "Java"ContentType= "text/html; charset=utf-8"pageencoding= "UTF-8"%><!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd "><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title>Insert Title here</title></Head><Body><formAction= "panduan.jsp"Method= "POST">Name:<inputtype= "text"name= "Name"><BR>Password:<inputtype= "Password"name= "Password"><BR><inputtype= "Submit"value= "Submit"> </form></Body></HTML>
<%@ Pagelanguage= "Java"ContentType= "text/html; charset=utf-8"pageencoding= "UTF-8"%><!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd "><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title>Insert Title here</title></Head><Body><% Stringname=request.getparameter ("name");String Password=request.getparameter ("password");%><%if(Name.equals ("Test1") &&password.equals ("123456")) {out.print ("correct password"); } else {response.sendredirect ("cuowu.jsp"); }%></Body></HTML>
<%@ Pagelanguage= "Java"ContentType= "text/html; charset=utf-8"pageencoding= "UTF-8"%><!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd "><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title>Insert Title here</title></Head><Body>account password input error</Body></HTML>
Write a JSP program to enable users to log in, when the user entered the user or password error, the page is redirected to the error prompt, and the page displayed 30 seconds after automatically return to the user login screen