jsp第四次

<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2021/3/27
  Time: 19:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 160px;
            height: 36px;
            background-color: #f40;
            line-height: 36px;
            text-align: center;
            color: #fff;
            font-size: 16px;
            margin: 30px auto;
            cursor: pointer;
            -webkit-user-select: none; /*禁止用户选中文字*/
        }
    </style>
</head>
<body>
  <form action="<%= request.getContextPath()%>/servlet/UserServlet" method="post" >
   用户名:<input type="text" name="uname"/>
    <br>
   密码:<input type="password"  name="password"/>
    <br>
    验证码:<input  type="text" name="checkCode"/>
    <a href="javascript:reloadCode();">
      <img alt="验证码" id="imagecode" src="<%= request.getContextPath()%>/servlet/ImageServlet"/>
      看不清楚</a><br>
    <input type="submit" value="登录">
  </form>
  </body>


</html>

 

posted @ 2021-03-28 18:40  张相濮  阅读(28)  评论(0编辑  收藏  举报