<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><body><form action="2.jsp"method="post">姓名:<input type="text"name="RdName"><br>密码:<input type="password"name="RdPasswd"><br><br><input type="submit"value="确定"></form></body>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><body> <%request.setCharacterEncoding("utf-8"); String Name=request.getParameter("RdName"); String Passwd=request.getParameter("RdPasswd"); if(Name.equals("zhangjuan ")&&Passwd.equals("3152052051439")){%> <jsp:forward page="3.jsp"/> <%}else{%> <jsp:forward page="4.jsp"/> <%} %></body>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <body> <% String Name=request.getParameter("RdName");%> 欢迎<%=Name%>成功登录!</body>
<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%><html> <head><title>登录出错</title></head> <body> <h4>用户名或密码错误,请重新登录</h4> <a href="1.jsp">重新登录</a> <hr width="100%" size="2"color="green"> </body></html>
时间: 2024-10-11 04:47:16