<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
  </head>
  
  <body>
    <form name="myform" method="post" action="denglu.jsp">
         <table align="center">
              <tr>
              <td>
              <img src="Snap1.jpg">
              <div style="position:absolute; left: 490px; top: 216px; width: 356px;">
                 <table width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
                   <tbody>
                        <tr vAlign=top> 
                          <td width="23%" height=27 align=right class=bld>用户名:&nbsp;</td>
                          <td height="27" align=left><input type="text" size="20" name="userid"><br>用户名由字母和数字组成</td>
                       </tr>
                        <tr vAlign=top> 
                          <td class=bld align=right height=27>密码:&nbsp;</td>
                          <td height="27" align=left><input type="password" size="20" name="passwd"><BR>密码由字母、数字和下划线组成,至少6位</td>
                     </tr>
                        <tr vAlign=top> 
                          <td class=bld align=right height=40>&nbsp;</td>
                          <td  align=left valign="middle"><A href="#"><input name="submit" type="image" src="login.gif" width="101" height="22" border="0" ></A> </td>
                        </tr>
               </table>
            </div>
          </td>
          </tr>
        </table>
     </form>
  </body>
</html>

 

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
  </head>
  
  <body>
    <%
             request.setCharacterEncoding("utf-8");
             String id= request.getParameter("userid");
             String pwd= request.getParameter("passwd");
             if(id.equals("lucky")&&pwd.equals("123456")){
                 response.sendRedirect("scc.jsp");
           }else{
            response.sendRedirect("flie.jsp");
         }
  
   %>
 <br>
  </body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
  </head>
  
  <body>
   <%
        String id=request.getParameter("userid");
    %>
    <h3><%=id %><br>你好:欢迎登录</h3>
  </body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
  </head>
  
  <body>
  
    <h3><br>登录失败</h3>
  </body>
</html>