<%@ page language= "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" >account:<input type=" text "name=" name "><br> password:<input type= "password" name= "password" ><br><input type= "Submit" value= "Submit" > </form></body>< /html>
<%@ page language= "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" >String name= Request.getparameter ("name"); name=NewString (Name.getbytes ("iso-8859-1"), "UTF-8"); String Password= Request.getparameter ("Password"); Out.print ("Account:" +name+ "<br>" + "Password:" +password);if(Name.equals ("Number One") &password.equals ("Tianxiadier"))){ %><jsp:forward page= "success.jsp" ></jsp:forward><%}Else{%><jsp:forward page= "fail.jsp" ></jsp:forward><%}%></body> <%@ page language= "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" > landed successfully </body>
<%@ page language= "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" >Account or password is incorrect <br ><a href= "newfile2.jsp" > re-login </a></body>
jsp-Analog bank Card account password login page jump