logon.jsp

来自「jsf开发的简单博客」· JSP 代码 · 共 43 行

JSP
43
字号
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
  <head>
    <title>登录</title>
  </head>
  <body bgcolor="#ffffff" style="">
    <center>
    <br/>
    <br/>
      <font color="blue">
        <h1>欢迎使用简单博客系统</h1>
      </font>
      <br/>
      <br/>
      <hr width="70%"/>
      <h3>请输入您的用户名和密码登录博客系统</h3>
      <br/>
      <br/>
      <table>
      <f:view>
           <h:form id="logon">
              <h:panelGrid columns="3">
                  <h:outputLabel for="username" value="用户名:" />
                  <h:inputText id="username" value="#{userBean.user.username}" required="true" />
                  <h:message for="username" />
                  <h:outputLabel for="password" value="密码:" />
                  <h:inputSecret id="password" value="#{userBean.user.password}" required="true" />
                  <h:message for="password" />
      </h:panelGrid>
              <h:panelGrid>
                  <h:panelGroup>
                     <h:commandButton value="提交" action="#{userBean.loginAction}" />
                  </h:panelGroup>
              </h:panelGrid>
           </h:form>
       </f:view>
      </table>
    </center>
  </body>
</html>

⌨️ 快捷键说明

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