login2.jsp

来自「两种开发JSP的模型」· JSP 代码 · 共 19 行

JSP
19
字号
<%@ page contentType="text/html;charset=GB2312" %>
<%
	//得到上下文路径,对于Servlet 2.5规范,还可以使用下面注释中的代码
	//String path = application.getContextPath();
	String path = request.getContextPath();
%>
<html>
    <head><title>登录页面</title></head>
    <body>
        <form method="post" action="<%=path %>/controller">
            <input type="hidden" name="action" value="login">
            用户名:<input type="text" name="name"><br>
            密码:<input  type="password" name="password"><p>
            <input type="reset" value="重填">
            <input type="submit" value="登录">
        </form>
    </body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?