zoukankan      html  css  js  c++  java
  • 第四周作业

    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>register</title>
    <style type="text/css" ></style>
    </head>
    <body>
     
    <form action="login.jsp" method="post">
        用户名:<input type="text" name="uname"><br>
        密   码:<input type="password" name="upwd"><br>
        <input type="submit" value="提交">
    </form>
         
    </body>
    </html>
    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>login</title>
    </head>
    <body>
    <%
        String uname = request.getParameter("uname");
        String upwd = request.getParameter("upwd");
        if(uname.equals("zs")&&upwd.equals("123"))
            
            request.getRequestDispatcher("OK.jsp").forward(request, response);
        else
            request.getRequestDispatcher("NO.jsp").forward(request, response);
        %>
    
    </body>
    </html>
    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    <h1 style="color:red">登录失败!</h1>
    <form action="register.jsp" method="post">
        <input type="submit" value="返回">
    </form>
    </body>
    </html>
    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    <h1 style="color:red">登陆成功!</h1>
    <%
        String uname = request.getParameter("uname");
        String upwd = request.getParameter("upwd");%>
        用户名为:<%=uname %><br>
        密码为:<%=upwd %>
    </body>
    </html>
  • 相关阅读:
    六.初识Mybatis
    python中文资源大全
    阅读《乌云回忆录一》后的一点感慨
    SSH无法连上CentOS7的问题
    [转]sqlmap使用教程
    [转]11种常见sqlmap使用方法详解
    ZVulDrill渗透环境搭建及部分题目writeup
    渗透资源大全-整理
    【洛谷5934】[清华集训2012] 最小生成树(最小割)
    【洛谷3974】[TJOI2015] 组合数学(模拟最大流)
  • 原文地址:https://www.cnblogs.com/bwk521/p/14589932.html
Copyright © 2011-2022 走看看