锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一日韩欧美中文字幕在线,亚洲色欲一区二区三区在线观看,国产成人亚洲综合一区 http://www.tkk7.com/wuxufeng8080/category/18789.html寮辨按涓夊崈錛屽彧鍙栦竴鐡紝渚胯兘瑙f復錛涗經娉曟棤杈癸紝濂夎涓娉曪紝渚胯兘寰楃泭銆?/description>zh-cn Tue, 24 Nov 2009 08:47:57 GMT Tue, 24 Nov 2009 08:47:57 GMT 60 struts2 琛ㄥ崟灞炴ф槧灝勭殑闂 http://www.tkk7.com/wuxufeng8080/archive/2009/08/04/289788.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Tue, 04 Aug 2009 07:52:00 GMT http://www.tkk7.com/wuxufeng8080/archive/2009/08/04/289788.html http://www.tkk7.com/wuxufeng8080/comments/289788.html http://www.tkk7.com/wuxufeng8080/archive/2009/08/04/289788.html#Feedback 0 http://www.tkk7.com/wuxufeng8080/comments/commentRss/289788.html http://www.tkk7.com/wuxufeng8080/services/trackbacks/289788.html
浣跨敤鏂頒笢瑗跨殑鏃跺欐垨澶氭垨灝戜細鍑虹幇榪欐牱閭f牱鐨勯棶棰橈紝榪欏鑷村緢澶氫漢涓嶆効鎰忔洿鎹㈠師鏉ョ殑妗嗘灦錛屼竴鎹㈠張瑕佸涓涓ぇ鍫嗕笢瑗匡紝澶勭悊涓澶у爢寮傚父銆備絾鏄垜浠繖浜涘仛寮鍙戠殑錛屼笉瀛︿範浣跨敤鏂扮殑 涓滆タ錛屽氨浼氳娣樻卑銆傝繖涓涓氱殑鎮插搥鍟婏紝褰撳垵涔熶笉鐭ラ亾鎬庝箞閫夋嫨浜嗚繖涓涓氥?br />
浠ヤ笂鏄澶栬瘽銆?br />
琛ㄥ崟鏄犲皠錛屽湪2閲岄潰鏈変袱縐嶆柟寮忥紝涓涓簨modelDriver錛岀洿鎺ユ槧灝勫埌model閲岄潰銆?br />
鍙︿竴縐嶆柟寮忓氨鏄氳繃灞炴ф潵褰卞皠錛岄氳繃getter鍜宻etter鏂規硶鏉ヨ幏鍙栧拰璁劇疆鍊箋?br />
鐜板湪鍑虹幇闂鐨勫湪絎簩縐嶆儏鍐碉紝璁懼煎悗錛屼紶鍒伴〉闈紝欏甸潰娌℃湁寰楀埌鍊鹼紝榪欎釜涓嶇煡閬撲粈涔堢紭鏁咃紝鎰熻鏈夊彲鑳芥槸欏甸潰杞彂鐨勯棶棰樸傝繖涓繕瑕佸ソ濂界湅鐪嬭祫鏂欑爺絀朵竴涓嬨?br />
錛氾級
//==========================================================================
2009-11-17
濂戒箙浠ュ墠鐨勯棶棰樹簡錛屼粖澶╃粓浜庢湁浜嗙瓟妗堬紝鍘熸潵閮芥槸ValueStack鎯圭殑銆傚叾瀹炰篃鎬嚜宸憋紝涓鐩存病鏈夌┖鎶妔truts2鐨勫師鐞嗗ソ濂界殑鐪嬬湅錛岃繕浠ヤ負璺熶互鍓嶇殑涓滆タ涓鏍峰憿銆?br />
闂鏄繖鏍風殑錛屽湪action閲屽畾涔変簡灞炴т箣鍚庯紝鏁版嵁閮芥槸瀛樺湪ValueStack閲岄潰鐨勩傚鏋滀綘鐩存帴浣跨敤tag鍙栫殑璇濆氨娌℃湁闂銆備絾鏄綘鎯抽氳繃java浠g爜錛岀敤request鍙栫殑璇濓紝榪欐牱鏄彇涓嶅嚭鏉ョ殑銆?br />
浠婂ぉ緇堜簬鍙戠幇浜嗚繖涓棶棰樼殑鍘熷洜銆?br />
榪欎簺灞炴у彲浠ラ氳繃request鍙栵紝浣嗘槸棣栧厛瑕佸幓鐨刅alueStack錛岀劧鍚庝粠ValueStack閲岄潰鎶婅繖涓煎彇鍑烘潵銆?br />
濡傦細
ValueStack vs = request.getAttribute(struts.valueStack);
鐒跺悗鏍規嵁灞炴у悕縐幫紝浠巚s涓幏鍙栬繖涓璞″箋?br />
vs.find("value");
榪欐牱灝卞彲浠ユ妸鏁版嵁鍙栧嚭鏉ラ氳繃java浠g爜鏉ユ搷浣滀簡銆傚惁鍒欏彧鑳戒嬌鐢╯truts2鑷甫鐨則ag鏉ヨ繍琛屻?br />
榪欎釜鏄粖澶╃殑涓澶ф敹鑾楓?
]]> struts2 -- Action Configuration (緲昏瘧) http://www.tkk7.com/wuxufeng8080/archive/2007/07/06/128496.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Fri, 06 Jul 2007 01:51:00 GMT http://www.tkk7.com/wuxufeng8080/archive/2007/07/06/128496.html http://www.tkk7.com/wuxufeng8080/comments/128496.html http://www.tkk7.com/wuxufeng8080/archive/2007/07/06/128496.html#Feedback 0 http://www.tkk7.com/wuxufeng8080/comments/commentRss/128496.html http://www.tkk7.com/wuxufeng8080/services/trackbacks/128496.html Action Mappings Action鏄犲皠鍙互鎸囧畾涓緇剅esult綾誨瀷錛屼竴緇勫紓甯稿鐞嗭紝涓涓嫤鎴櫒鍫嗐備絾鏄彧鏈塶ame灞炴ф槸蹇呴』鐨勩傚叾浠栫殑灞炴ч兘鍙互閫氳繃package鑼冨洿鎻愪緵銆?br>涓涓櫥褰昦ction
< action name ="Logon" class ="tutorial.Logon" > < result type ="redirect-action" > Menu </ result > < result name ="input" > /tutorial/Logon.jsp </ result > </ action >
Action Names 鍦╳eb搴旂敤涓紝name灞炴ф槸鐢ㄤ互鍖歸厤嫻忚鍣ㄨ姹傝礬寰勭殑涓閮ㄥ垎錛堟垨鍏朵粬HTTP瀹㈡埛绔級銆俧ramework浼氫涪鎺変富鏈哄悕銆佸簲鐢ㄥ悕鍜屾墿灞曞悕錛屽茍鍖歸厤涓棿閮ㄥ垎銆傛墍浠ワ紝涓涓?tt>http://www.planetstruts.org/struts2-mailreader/Welcome.do 浼歮ap鍒?Welcome action銆?br>
鍦ㄥ簲鐢ㄤ腑錛岃繖涓埌action鐨勯摼鎺ヤ竴鑸槸鐢眘truts tag鏉ヨ嚜鍔ㄤ駭鐢熺殑銆傝繖涓猼ag閫氳繃鍚嶅瓧鏉ユ寚瀹歛ction錛屽茍涓旇繖涓猣ramework浼氬姞涓婇粯璁ゆ墿灞曞悕鍜屽叾浠栦竴浜涘繀欏?鐨勪笢瑗褲?/p>
< s:form action ="Hello" > < s:textfield label ="Please enter your name" name ="name" /> < s:submit /> </ s:form >
Wildcard Method 澶氭暟鎯呭喌錛屼竴緇刟ction mapping浼氭湁涓涓叡浜ā寮忋傛瘮濡傦紝浣犳墍鏈夌殑 edit actions閮戒竴涓?#8220;edit”鎵撳ご錛?騫惰皟鐢ㄨ繖涓猘ction 綾葷殑edit鏂規硶銆俤elete actions涔熸槸榪欎釜妯″紡錛屼絾鏄皟鐢ㄧ殑鏄痙elete鏂規硶銆?br>
榪欑鎯呭喌錛屼綘灝卞彲浠ラ氳繃閫氶厤絎︾殑鏂瑰紡鏉ュ畾涔変竴嬈ction mapping錛岃繙鑳滀簬瀹氫箟姣忎竴涓猘ction mapping.
< action name ="*Crud" class ="example.Crud" method ="{1}" >
榪欓噷錛屼竴涓?editCrud"鐨刟ction浼氳皟鐢–rud Action綾誨疄渚嬬殑edit鏂規硶銆傚悓鏍鳳紝涓涓?deleteCrud"鐨刟ction浼氳皟鐢╠elete鏂規硶銆?br>鍙︿竴縐嶅父鐢ㄧ殑鏂規硶灝辨槸鍚庣紑鏂規硶鍚嶏紝閫氳繃璁劇疆"!", "_", 鎴栬呭叾浠栦竴浜涚壒孌婂瓧絎︺?br>
"action=Crud_input"
"action=Crud_delete"
To use a postfix wildcard, just move the asterisk and add an underscore.
< action name ="Crud_*" class ="example.Crud" method ="{1}" >
]]> struts2--Result Configuration http://www.tkk7.com/wuxufeng8080/archive/2007/06/27/126530.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Wed, 27 Jun 2007 03:29:00 GMT http://www.tkk7.com/wuxufeng8080/archive/2007/06/27/126530.html http://www.tkk7.com/wuxufeng8080/comments/126530.html http://www.tkk7.com/wuxufeng8080/archive/2007/06/27/126530.html#Feedback 0 http://www.tkk7.com/wuxufeng8080/comments/commentRss/126530.html http://www.tkk7.com/wuxufeng8080/services/trackbacks/126530.html
褰揂ction綾繪柟娉曞畬鎴愶紝浼氳繑鍥炰竴涓瓧絎︿覆錛岃繖涓瓧絎︿覆鍊肩敤鏉ラ夋嫨result鍏冪礌銆備竴涓猘ction鍙互鏄犲皠鍒頒竴緇勪笉鍚屾弿榪扮殑緇撴灉銆傛爣鍑嗙殑result鏄湪ActionSupport 榪欎釜鍩虹被涓畾涔夌殑銆?/p>
String SUCCESS = " success " ; String NONE = " none " ; String ERROR = " error " ; String INPUT = " input " ; String LOGIN = " login " ;
褰撶劧錛宎p鍙互鑷畾涔夊叾浠栫殑result鏍囪鏉atch鐗瑰畾鐨勬儏鍐點?/p>
Result Elements result鏈夐粯璁ゅ艱瀹氾紝濡傛灉涓嶆寚瀹氬睘鎬э紝鍒欎嬌鐢╯uccess鍜宒ispatch鏉ユ墽琛岃繖涓猺esult
< action name ="Hello" > < result > /hello/Result.jsp </ result > < result name ="error" > /hello/Error.jsp </ result > < result name ="input" > /hello/Input.jsp </ result > </ action >
濡備笂鏄劇ず錛岄粯璁ゆ儏鍐典笅錛屽鏋滆繑鍥炲兼槸success錛屽垯鎵ц絎竴涓猺esult錛屽叾浠栫殑鎯呭喌鎵ц涓嬮潰鐨勫尮閰嶇殑result
Global Results
澶ч儴鍒嗘椂鍊欙紝results閮芥槸宓屽鍦╝ntion鍏冪礌涓備絾鏄緢澶歳esults浼氬簲鐢ㄥ埌涓嶅悓鐨刟ction銆傚湪涓涓畨鍏ㄧ殑搴旂敤涓紝涓涓猚lient璇曞浘璁塊棶涓涓病鏈夎璇佺殑欏甸潰錛岄偅涔堝緢澶歛ction鍙兘閮介渶瑕佸幓璁塊棶 logon result銆?br>濡傛灉action闇瑕佸叡浜玶esult錛?涓緇刧lobal result鍙互涓烘瘡涓涓猵ackage瀹氫箟銆傛鏋墮鍏堟煡璇㈠祵濂楀湪action涓殑鏈湴result錛屽鏋滄湰鍦皉esult娌℃湁絎﹀悎鐨勶紝鍒欏湪global result涓煡璇€?/p>
< global-results > < result name ="error" > /Error.jsp </ result > < result name ="invalid.token" > /Error.jsp </ result > < result name ="login" type ="redirect-action" > Logon!input </ result > </ global-results >
Dynamic Results A result may not be known until execution time. Consider the implementation of a state-machine-based execution flow; the next state might depend on any combination of form input elements, session attributes, user roles, moon phase, etc. In other words, determining the next action, input page, etc. may not be known at configuration time.
Result values may be retrieved from its corresponding Action implementation by using EL expressions that access the Action's properties, just like the Struts 2 tag libraries. So given the following Action fragment: 涓涓猘ction鏈夋椂鍊欎笉鍙兘鍦ㄦ墽琛屽墠灝辯煡閬撳畠鐨刟ction錛岃繖縐嶆儏鍐靛氨闇瑕侀氳繃鍔ㄦ乺esult鏉ュ疄鐜般?/p>
棣栧厛瀹氫箟涓涓睘鎬э紝鏉ュ瓨鏀捐繖涓鹼紝鐒跺悗鍦ㄦ祦紼嬪畾涔変腑閫氳繃EL琛ㄨ揪寮忔潵鍙栧緱榪欎釜灞炴у箋傝繖鏍峰氨鍙互閫氳繃紼嬪簭鍔ㄦ佹寚瀹氶渶瑕佽漿鍙戠殑鍊箋?/p>
private String nextAction; public String getNextAction() { return nextAction; }
you might define a result like this:
< action name = " fragment " class = " FragmentAction " > < result name = " next " type = " redirect-action " > $ {nextAction} </ result > </ action >
If a FragmentAction method returns "next" the actual value of that result will be whatever is in FragmentAction 's nextAction property. So nextAction may be computed based on whatever state information necessary then passed at runtime to "next"'s redirect-action . 鎬葷粨錛宻truts2瀵逛簬result鎻愪緵浜嗗緢澶氬緢鐏墊椿鐨勮緗柟娉曪紝鐢ㄦ埛鍙互浣跨敤鐩稿簲鐨勬柟娉曞鐞嗙壒瀹氱殑閫昏緫銆傚浜庡悇縐嶆儏鍐碉紝鎬昏兘鎵懼嚭鐩稿簲鐨勬柟娉曟潵鍑烘潵銆?br>
]]>Struts2 flow 閰嶇疆 http://www.tkk7.com/wuxufeng8080/archive/2007/05/10/116455.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Thu, 10 May 2007 05:12:00 GMT http://www.tkk7.com/wuxufeng8080/archive/2007/05/10/116455.html http://www.tkk7.com/wuxufeng8080/comments/116455.html http://www.tkk7.com/wuxufeng8080/archive/2007/05/10/116455.html#Feedback 0 http://www.tkk7.com/wuxufeng8080/comments/commentRss/116455.html http://www.tkk7.com/wuxufeng8080/services/trackbacks/116455.html 1銆侀粯璁ら厤緗?br>2銆佸埆鍚?br>3銆佽繑鍥炵粨鏋?
]]> Struts2--form璁捐 http://www.tkk7.com/wuxufeng8080/archive/2007/05/09/116132.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Wed, 09 May 2007 03:13:00 GMT http://www.tkk7.com/wuxufeng8080/archive/2007/05/09/116132.html http://www.tkk7.com/wuxufeng8080/comments/116132.html http://www.tkk7.com/wuxufeng8080/archive/2007/05/09/116132.html#Feedback 0 http://www.tkk7.com/wuxufeng8080/comments/commentRss/116132.html http://www.tkk7.com/wuxufeng8080/services/trackbacks/116132.html 1銆乫orm鐨?theme灞炴?/strong> 浣犲彲浠ュ湪<s:form>鍔犱笂theme="simple"灞炴э紝鐒跺悗鑷凡甯冨眬form鐨勮緭鍑恒傚: <s:form action="Login" method="POST" theme="simple"> <table> <tr> <td> User name: <s:textfield name="name" label="User name"/> </td> <td> Password: <s:password name="password" label="Password"/> </td> </tr> </table> </s:form>
]]> Struts 2.0 璧鋒 http://www.tkk7.com/wuxufeng8080/archive/2006/12/29/90656.html椋庝漢鍥?/dc:creator>椋庝漢鍥?/author>Fri, 29 Dec 2006 02:09:00 GMT http://www.tkk7.com/wuxufeng8080/archive/2006/12/29/90656.html http://www.tkk7.com/wuxufeng8080/comments/90656.html http://www.tkk7.com/wuxufeng8080/archive/2006/12/29/90656.html#Feedback 0 http://www.tkk7.com/wuxufeng8080/comments/commentRss/90656.html http://www.tkk7.com/wuxufeng8080/services/trackbacks/90656.html 鍙傝?http://www.tkk7.com/max/category/16130.html 1銆佹坊鍔爏truts2鐨刯ar鍖咃紝struts2-core-2.x.x.jar, struts2-api-2.x.x.jar (struts2-all-2.x.x.jar鍗沖彲錛屽叾浠栫殑struts2鐨勬彃浠跺寘宸茬粡鍖呭惈鍦ㄩ噷闈?銆?br> 濡傛坊鍔犲叾浠栫殑鎻掍歡鍖咃紝鍙兘浼氬嚭鐜版枃浠墮噸澶嶏紝鍏蜂綋鍙互鐪嬪紓甯鎬俊鎭?br> 鎴栬呬笉瑕佸姞all鍖咃紝鑰屼嬌鐢ㄦ彃浠跺寘錛屽彲浠ュ噺灝忓寘鐨勫ぇ灝忋?br>2銆佷慨鏀箇eb.xml
1 <? xml version="1.0" encoding="UTF-8" ?> 2 < web-app version ="2.4" 3 xmlns ="http://java.sun.com/xml/ns/j2ee" 4 xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance" 5 xsi:schemaLocation ="http://java.sun.com/xml/ns/j2ee 6 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > 7 < display-name > Struts2 Hello World! </ display-name > 8 9 < filter > 10 < filter-name > Struts2 </ filter-name > 11 < filter-class > 12 org.apache.struts2.dispatcher.FilterDispatcher13 </ filter-class > 14 </ filter > 15 < filter-mapping > 16 < filter-name > Struts2 </ filter-name > 17 < url-pattern > /* </ url-pattern > 18 </ filter-mapping > 19 </ web-app > 20
3銆佸湪classpath涓嬫坊鍔爏truts.properties鏂囦歡錛屽唴瀹瑰涓?br>struts.devMode = true struts.enable.DynamicMethodInvocation = false 4銆佸湪classpath涓嬫坊鍔爏truts.xml錛岃繖涓槸瀵瑰簲struts1.x閲岄潰鐨剆truts-config.xml
1 <! DOCTYPE struts PUBLIC 2 "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" 3 "http://struts.apache.org/dtds/struts-2.0.dtd" > 4 < struts > 5 < package name ="example" extends ="struts-default" > 6 < action name ="hello" class ="com.ivo.struts2.HelloWorld" method ="aliasAction" > 7 < result > /hello.jsp </ result > 8 </ action > 9 < action name ="Login" class ="com.ivo.struts2.Login" > 10 < result > /hello.jsp </ result > 11 </ action > 12 < action name ="LoginX" class ="com.ivo.struts2.LoginX" > 13 < result > /hello.jsp </ result > 14 </ action > 15 </ package > 16 </ struts >
娉ㄦ剰錛宻truts2鐨勪袱涓浉鍏蟲枃浠墮渶瑕佹斁鍦╟lasspath涓?/p>
]]>
主站蜘蛛池模板:
免费成人福利视频 |
日韩内射激情视频在线播放免费
|
亚洲Av无码一区二区二三区 |
免费一级不卡毛片 |
久久精品国产亚洲AV麻豆王友容 |
黄网站色视频免费在线观看的a站最新 |
亚洲国产成人精品久久久国产成人一区二区三区综
|
337p日本欧洲亚洲大胆人人 |
日韩人妻无码免费视频一区二区三区
|
成年性生交大片免费看 |
亚洲综合av一区二区三区 |
女人与禽交视频免费看 |
相泽南亚洲一区二区在线播放 |
午夜亚洲av永久无码精品 |
av片在线观看永久免费 |
久久国产成人精品国产成人亚洲 |
国产高潮流白浆喷水免费A片 |
亚洲综合色婷婷七月丁香 |
日韩在线永久免费播放 |
亚洲视频无码高清在线 |
免费又黄又爽又猛的毛片
|
A毛片毛片看免费 |
亚洲视屏在线观看 |
成人性生活免费视频 |
一级毛片a免费播放王色电影
|
黄页网址在线免费观看 |
亚洲欧洲美洲无码精品VA |
免费看男人j放进女人j免费看 |
精品亚洲AV无码一区二区 |
亚洲av无码天堂一区二区三区 |
色www永久免费网站 |
亚洲资源最新版在线观看 |
免费观看亚洲人成网站 |
永久免费av无码网站yy |
成人亚洲国产va天堂 |
日日噜噜噜噜夜夜爽亚洲精品 |
国产精品色拉拉免费看 |
男女啪啪免费体验区 |
亚洲沟沟美女亚洲沟沟 |
亚洲男人在线无码视频 |
中文字幕在线免费观看 |