锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品亚洲成A人在线观看青青,久久综合亚洲色hezyo,亚洲成av人片在线看片http://m.tkk7.com/liaojiyong/category/13296.htmlzh-cnWed, 28 Feb 2007 02:05:43 GMTWed, 28 Feb 2007 02:05:43 GMT60Eclipse涓婮SF鍏ラ棬 (杞?http://m.tkk7.com/liaojiyong/archive/2006/07/21/59316.htmlliaojiyongliaojiyongThu, 20 Jul 2006 17:37:00 GMThttp://m.tkk7.com/liaojiyong/archive/2006/07/21/59316.htmlhttp://m.tkk7.com/liaojiyong/comments/59316.htmlhttp://m.tkk7.com/liaojiyong/archive/2006/07/21/59316.html#Feedback0http://m.tkk7.com/liaojiyong/comments/commentRss/59316.htmlhttp://m.tkk7.com/liaojiyong/services/trackbacks/59316.html
1.寮鍙戠幆澧?
聽 聽涓嶦clipse涓婼truts鐨勫紑鍙戠被浼鹼紝瀹夎濂紼clipse鍜孴omcat涔嬪悗錛岃繕闇瑕佷袱涓彃浠訛細tomcat 鎻掍歡鍜孞SF鎻掍歡錛堝鏋滅浉鍏蟲彃浠惰繕娌℃湁瀹夎錛夛紝浠ヤ笅鏄浉鍏充笅杞藉湴鍧錛?
聽 聽 Eclipse SDK錛?
聽 聽 聽 聽 http://www.eclipse.org/downloads/index.php
聽 聽 JSF:
聽 聽 聽https://sourceforge.jp/projects/amateras/files/ 聽
聽 聽 聽 FaceIDE+htmlEditor錛宧tmlEditer涔熸槸蹇呰鐨?
聽 聽 Tomcat :
聽 聽 聽 聽 聽http://www.sysdeo.com/eclipse/tomcatplugin
聽 聽 Plugin Search:
聽 聽 聽 聽 聽http://eclipse-plugins.2y.net/eclipse/search.jsp
聽 聽鎻掍歡鐨勫畨瑁呭拰閰嶇疆鏈夐棶棰樿鐩存帴Google銆?
2.寮濮?
聽 聽 鍏ラ棬鍢涳紝鎴戜滑灝辨壘涓涓渶綆鍗曠殑Login灝卞彲浠ヤ簡

聽 聽 鏂板緩Tomcat project
聽 聽 鍔犲叆JSF鏀寔

聽 聽 鏂板緩涓涓狹anagedBean錛?


/**
聽*
聽*/
package com.jsf;




/**
聽* @author lzy
聽*
聽*/
public class UserBean {
private String name;
聽 聽 private String password;
public String verify() {
聽 聽 聽if(this.name.equals("name")&&this.password.equals("password"))
聽 聽 聽
聽 聽 聽 聽 return "failure";

聽 聽else
聽 聽 聽 聽 return "success";
}


/**
* @return Returns the name.
*/
public String getName() {
return name;
}

/**
* @param name The name to set.
*/
public void setName(String name) {
this.name = name;
}


/**
* @return Returns the password.
*/
public String getPassword() {
return password;
}

/**
* @param password The password to set.
*/
public void setPassword(String password) {
this.password = password;
}


}

聽 聽 聽鏂板緩涓や釜JSP欏甸潰錛宭ogin.jsp,welcom.jsp

login.jsp
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>
<head>
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>
<head>
<link href="main.css" rel="stylesheet"/>
<title></title>

</head>
<body>
聽 聽 <f:view>
聽 聽 <f:loadBundle basename="com.jsf.MessageResources" var="msgs"></f:loadBundle>
聽 聽
聽 聽 聽 聽 <h:form>
聽 聽 聽 聽 <h:panelGrid columns="3" headerClass="header" rowClasses="evenRow,oddRow">
聽 聽 聽 聽 <f:facet name="header" >
聽 聽 聽 聽 <h:outputText value="#{msgs.header}"/>
聽 聽 聽 聽 </f:facet>
聽 聽 聽 聽
聽 聽 聽 聽 <h:outputText value="#{msgs.namePromt}"></h:outputText>
聽 聽 聽 聽 <h:inputText id="name" 聽required="true" value="#{user.name}">
聽 聽 聽 聽 <f:validateLength minimum="2" maximum="10"></f:validateLength>
聽 聽 聽 聽 </h:inputText>
聽 聽 聽 聽 <h:message for="name" errorClass="errors"/>
聽 聽 聽 聽
聽 聽 聽 聽
聽 聽 聽 聽 <h:outputText value="#{msgs.passwordPromt}"></h:outputText>
聽 聽 聽 聽
聽 聽 聽 聽 <h:inputSecret id="password" value="#{user.password}" required="true" redisplay="true">
聽 聽 聽 聽 <f:validateLength minimum="2"></f:validateLength>
聽 聽 聽 聽 </h:inputSecret>
聽 聽 聽 聽 <h:message for="password"/>
聽 聽 聽 聽
聽 聽 聽 聽
聽 聽 聽 聽 聽 聽 聽 <f:facet name="footer" >
聽 聽 聽 聽 <h:outputText value="#{msgs.footer}"/>
聽 聽 聽 聽 </f:facet>
聽 聽 聽 聽 </h:panelGrid> 聽 聽 聽 聽 聽
聽 聽 聽 聽 聽 聽 <h:commandButton value="#{msgs.submitPromt}" action="#{user.verify}"/>
聽 聽 聽 聽 聽 聽 <h:commandButton value="#{msgs.resetPromt}" type="reset"/>
聽 聽 聽 聽 </h:form>
聽 聽 </f:view>
</body>
</html>



welcome.jsp


<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK"/>
<title></title>
</head>
<body>
聽 聽 <f:view>
聽 聽 聽 聽 <h:outputText value="#{user.name}"/> 聽is a good boy錛?
聽 聽 聽 聽 <h3>welcome JavaServer Faces</h3>
聽 聽 </f:view>
</body>

</html>
聽 聽 聽緙栬緫WEB錛岻NF/lib涓嬬殑faces錛峜onfig.xml

struts-config.xml

<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<navigation-rule>
聽 聽 聽 聽 <from-view-id>/login.jsp</from-view-id>
聽 聽 聽 聽 <navigation-case>
聽 聽 聽 聽 聽 聽 <from-outcome>success</from-outcome>
聽 聽 聽 聽 聽 聽 <to-view-id>/welcome.jsp</to-view-id>
聽 聽 聽 聽 </navigation-case>
聽 聽 聽 聽 <navigation-case>
聽 聽 聽 聽 聽 聽 <from-outcome>failure</from-outcome>
聽 聽 聽 聽 聽 聽 <to-view-id>/login.jsp</to-view-id>
聽 聽 聽 聽 </navigation-case>
</navigation-rule>


<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>com.jsf.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>


聽 聽 聽 聽鏈鍚庢槸璧勬簮鏂囦歡

# --login.jsp--
header=Welcom
namePromt=Name:
passwordPromt=Password:
amountPromt=Amount:
datePromt=Date:
submitPromt=Submit
resetPromt=Reset
footer=Thank you!


3.嫻嬭瘯
鍦╰est宸ョ▼涓夋嫨tomcat project錛?gt;Update context definition
鐒跺悗榪愯Tomcat
http://127.0.0.1:8080/jsfTest/login.jsf


]]>
主站蜘蛛池模板: 亚洲国产成人AV在线播放| 亚洲免费二区三区| yellow视频免费看| 日韩精品电影一区亚洲| 美女免费精品高清毛片在线视| 日韩精品无码人妻免费视频| 亚洲精品天堂成人片AV在线播放| 成人无码区免费A片视频WWW| 亚洲av成人综合网| 四虎影院免费在线播放| 无人视频在线观看免费播放影院| 国产乱弄免费视频| 久久精品无码专区免费| 亚洲AV无码精品色午夜在线观看| 好紧我太爽了视频免费国产| 亚洲国语精品自产拍在线观看 | 国产精品国产午夜免费福利看 | 两个人看www免费视频| 久热综合在线亚洲精品| 免费v片在线观看视频网站| 亚洲精品色播一区二区| 亚洲av无码国产精品色在线看不卡| 黄床大片免费30分钟国产精品| 亚洲狠狠婷婷综合久久久久| 98精品全国免费观看视频| 精品国产成人亚洲午夜福利| 国产a不卡片精品免费观看| a级毛片免费播放| 亚洲图片中文字幕| 免费在线观看理论片| 久久精品私人影院免费看| 亚洲三级在线播放| 亚洲AV无码乱码在线观看牲色| 拍拍拍无挡免费视频网站| 亚洲AV无码久久久久网站蜜桃 | 91免费国产精品| 大桥未久亚洲无av码在线 | 永久免费的网站在线观看| 性生大片视频免费观看一级| 亚洲高清在线mv| 亚洲国产综合无码一区二区二三区|