⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.jsp

📁 Spring2.0宝典
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!--该句绑定在classes下的messages的资源文件-->
<f:loadBundle basename="messages" var="msg"/>

<html>
 <head>
  <title>登陆</title>
 </head>
 <body>
   <f:view>
     <h1>
      <h:outputText value="#{msg.loginHeader}"/>
     </h1>
      <h:outputText value="#{login.err}"/>
     <h:form id="loginForm">
      <h:outputText value="#{msg.namePrompt}"/>
      <!--此处关联了form bean和该form的关系-->
	  <h:inputText value="#{login.name}" /><br>
      <h:outputText value="#{msg.passPrompt}"/>
	  <!--h:inputText value="#{login.pass}" /-->
	  <h:inputText id="pass" value="#{login.pass}">
  		<f:valueChangeListener type="lee.PassChanged" />
      </h:inputText>
	<br>
      <!--此处指定了提交的Action,该Action是个直接的结果-->      
	  <h:commandButton action="#{login.valid}" value="#{msg.buttonTitle}" />
     </h:form>
   </f:view>
 </body>
</html>  

⌨️ 快捷键说明

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