<html>
<body>
<form action="ch03_11_userReceive.jsp" method="post">
姓名:<input type="text" name="RdName"><br>
密码:<input type="password" name="RdPasswd"><br><br>
<input type="submit" value="确定">
</form>
</body>
</html>
<html>
<body>
<%String Name=request.getParameter("RdName");
String Passwd=request.getParameter("RdPasswd");
if(Name.equals("abcdef")&&Passwd.equals("123456"))%>
<jsp:forward page="ch03_11_loginCorrect.jsp"/>
<%else%>
response.sendRedirect();
</body>
</html>
<html>
<body>
<%String Name=request.getParameter("RdName");%>
欢迎, <%=Name>成功登录!
</body>
</html>