Java web ch03_11_userReceive.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

  <head>

    <title>信息验证页面</title>

  </head>

  <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{%>

    <jsp:forward page="ch03_11_loginMiss.jsp"/>

    <%} %>

  </body>

</html>

posted on 2017-09-29 20:45  蒙查查  阅读(81)  评论(0编辑  收藏  举报

导航