login.jsp

来自「这是一个网上书店」· JSP 代码 · 共 49 行

JSP
49
字号
<%@ page language="java" pageEncoding="UTF-8"%>

<%@ include file="IncludeHeader.jsp"%>

<html>

  <head>
    <title>网上书店</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" href="<html:rewrite page="/style.css"/>">
  </head>

  <body>

    <div class="content">
    <%@ include file="IncludeTop.jsp"%>
    <div id="loginForm">
      <html:form action="/loginAction">
        <fieldset>
          <legend>
            用户登录
          </legend>
          <div>
            <label for="userName">
              用户名:
            </label>
            <html:text property="userName" />
          </div>
          <div>
            <label for="password">
              密码:
            </label>
            <html:password property="password" />
          </div>
          <div>
            <html:hidden property="method" value="login" />
            <html:submit value="登录" styleClass="normalButton" />
          </div>
        </fieldset>
      </html:form>
      </div>
       <%@ include file="IncludeBottom.jsp"%>
  </body>
</html>

⌨️ 快捷键说明

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