📄 c095bbfc7882001b1192d62530c8106f
字号:
<%@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="User Name:" />
<h:inputText id="username" value="#{userBean.user.username}" required="true" />
<h:message for="username" />
<h:outputLabel for="password" value="Password:" />
<h:inputSecret id="password" value="#{userBean.user.password}" required="true" />
<h:message for="password" />
</h:panelGrid>
<h:panelGrid>
<h:panelGroup>
<h:commandButton value="Login" action="#{userBean.loginAction}" />
</h:panelGroup>
</h:panelGrid>
</h:form>
</f:view>
<f:view>
<h:form id="logon">
<h:panelGrid columns="2">
<h:outputText value="用户名:"/>
<h:inputText id="username" value="#{logonForm.username}"> </h:inputText>
<h:message for="username" />
<h:outputText value="密码:"/>
<h:inputText id="password" value="#{logonForm.password}"> </h:inputText>
<h:message for="password" />
</h:panelGrid>
<h:commandButton value="提交" action="#{logonForm.logon}"/>
</h:form>
</f:view>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -