<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP ‘login.jsp‘ starting page</title>
</head>
<body>
<%String Name=request.getParameter("RdName"); %>
欢迎,<%=Name %>成功登录!
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP ‘Second.jsp‘ starting page</title>
</head>
<body>
<%String Name=request.getParameter("RdName");
String Passwd=request.getParameter("RdPasswd");
if(Name.equals("abcdef")&&Passwd.equals("123456")) %>
<jsp:forward page="login.jsp"/>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP ‘MyJsp.jsp‘ starting page</title>
</head>
<body>
<form action="Second.jsp" method="post">
姓名:<input type="text" name="RdName"><br>
密码:<input type="password" name="RdPasswd"><br><br>
<input type="submit" value="确定">
</form>
</body>
</html>