mvc之实现登录功能(day13)

机会通常会伪装成艰苦的工作,所以大多数人不认识他们。


  • 运行环境

JDK8+IntelliJ IDEA 2018.3 x64

apache-tomcat-8.5.31

apache-maven-3.5.2

    

  • 功能实现

    

  • 代码实现

 1 <%--
 2   Created by IntelliJ IDEA.
 3   User: cmf
 4   Date: 2020/9/15
 5   Time: 15:08
 6   To change this template use File | Settings | File Templates.
 7 --%>
 8 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
 9 <html>
10 <head>
11     <title>login</title>
12 </head>
13 <body>
14     <form action="userServlet" method="post">
15         <input type="hidden" value="userQuery" name="function"/>
16         用户名:<input type="text" value="" name="name"/> <br/>
17         密码:<input type="password" value="" name="password"/> <br/>
18         <input type="submit" value="登录"/>
19         <input type="reset"/>
20     </form>
21 </body>
22 </html>
  •  END

    为了不错过每天的见面,请记得点击一下【关注】啊~

    

    作者:javagril,00后女生,一个IT界冉冉升起的新星,想带你遨游缤纷多彩的编程世界。

原文地址:https://www.cnblogs.com/cmf12/p/13680867.html