zoukankan      html  css  js  c++  java
  • jsp第五次作业

    <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
    <html>
    <head>
    <style type="text/css">
    body {
        background-image: url('image/Snap1.jpg');
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center;
    }
    </style>
    
    </head>
    
    <body>
        <div style="margin-left: 750;margin-top: 300">
            <form action="Logindoing.jsp" method="post">
                <table border="0">
                    <tr height="50">
                        <td>用户名:</td>
                        <td><input type="text" name="user">
                        </td>
                    </tr>
                    <tr height="50">
                        <td>密码:</td>
                        <td><input type="password" name="password">
                        </td>
                    </tr>
                    <tr height="50">
                        <td colspan="2" align="center"><input type="submit" value="登录">
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    
    </body>
    </html>
    <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
    <%
        String user = request.getParameter("user");
        String password = request.getParameter("password");
        if (user.equals("lucky") && password.equals("123456")) {
            request.getRequestDispatcher("LoginYes.jsp").forward(request,
                    response);
        } else {
            request.getRequestDispatcher("Login.jsp").forward(request,
                    response);
        }
    %>
    <html>
    <head>
    
    </head>
    
    <body>
    </body>
    </html>
    <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
    
    <html>
    <head>
    <style type="text/css">
    div {
    text-align: center;
    margin-top: 300;
    font-size: 40;
    color:blue
    }
    </style>
    
    </head>
    
    <body>
        <div>你好:Lucky!</div>
    </body>
    </html>

  • 相关阅读:
    JS注意事项
    正则
    js闭包
    【转】chrome console用法
    JSON
    流式传输原理(一) 之通过Web服务器访问音频和视频
    流式传输原理(二) 之通过流式服务器访问音视频
    Equivalence Class Partitioning等价类划分黑盒测试
    【判断闰年】程序抛出异常的解决方案
    新学期😄😄😄
  • 原文地址:https://www.cnblogs.com/xf981107/p/12587627.html
Copyright © 2011-2022 走看看