锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲免费视频成人,78色国产精品,欧美午夜视频一区二区http://www.aygfsteel.com/fidodido/category/3309.html瀛愬 緙栫▼ 浠g爜涓庢垜鍚屽湪zh-cnTue, 27 Feb 2007 10:48:07 GMTTue, 27 Feb 2007 10:48:07 GMT60鍦⊿truts涓嬌鐢╒alidator瀹炵幇鍙厤緗殑淇℃伅鏍¢獙錛堜簩錛?/title><link>http://www.aygfsteel.com/fidodido/archive/2006/03/07/34130.html</link><dc:creator>^ Mustang ^</dc:creator><author>^ Mustang ^</author><pubDate>Tue, 07 Mar 2006 10:38:00 GMT</pubDate><guid>http://www.aygfsteel.com/fidodido/archive/2006/03/07/34130.html</guid><wfw:comment>http://www.aygfsteel.com/fidodido/comments/34130.html</wfw:comment><comments>http://www.aygfsteel.com/fidodido/archive/2006/03/07/34130.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fidodido/comments/commentRss/34130.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fidodido/services/trackbacks/34130.html</trackback:ping><description><![CDATA[<H3>涓夈佽嚜瀹氫箟鏍¢獙閫昏緫</H3> <P>姣曠珶Struts鎻愪緵鐨勬牎楠岄昏緫鏈夐檺錛屼笉鍙兘婊¤凍鎵鏈夌殑寮鍙戦渶瑕侊紝鍥犳鏈夋椂蹇呴』瀵瑰叾榪涜鎵╁睍銆傝繖閲屼婦涓涓疄闄呴」鐩腑鐨勪緥瀛愶細鏍¢獙鐮佹鏌ャ傜幇鍦ㄥ緢澶氱綉绔欎負浜嗛槻姝㈡伓鎰忕殑欏甸潰鍒鋒柊鏀誨嚮錛岄兘浣跨敤浜嗗浘鐗囧艦寮忕殑鏍¢獙鐮侊紝濡傦細</P> <P align=center><IMG alt="" hspace=0 src="http://www.aygfsteel.com/images/blogjava_net/fidodido/code.jpg" align=baseline border=0></P> <P>琛ㄥ崟鎻愪氦鍚庨渶瑕佹鏌ユ牎楠岀爜錛堝瓨鍦╮equest鎴杝ession閲岋級鍜岀敤鎴瘋緭鍏ユ槸鍚︿竴鑷達紝浠g爜濡備笅錛?/P> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008080"> 1</SPAN><IMG id=Codehighlighter1_24_647_Open_Image onclick="this.style.display='none'; Codehighlighter1_24_647_Open_Text.style.display='none'; Codehighlighter1_24_647_Closed_Image.style.display='inline'; Codehighlighter1_24_647_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_24_647_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_24_647_Closed_Text.style.display='none'; Codehighlighter1_24_647_Open_Image.style.display='inline'; Codehighlighter1_24_647_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000"> MyValidator</SPAN><SPAN id=Codehighlighter1_24_647_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_24_647_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080"> 2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">private</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> Logger logger </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> Logger.getLogger(Constants.CON_LOGGER_NAME);<BR></SPAN><SPAN style="COLOR: #008080"> 3</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080"> 4</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>  </SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">boolean</SPAN><SPAN style="COLOR: #000000"> validateCodeInput(Object obj,ValidatorAction action,Field field,<BR></SPAN><SPAN style="COLOR: #008080"> 5</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_245_645_Open_Image onclick="this.style.display='none'; Codehighlighter1_245_645_Open_Text.style.display='none'; Codehighlighter1_245_645_Closed_Image.style.display='inline'; Codehighlighter1_245_645_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_245_645_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_245_645_Closed_Text.style.display='none'; Codehighlighter1_245_645_Open_Image.style.display='inline'; Codehighlighter1_245_645_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>      ActionMessages errors,HttpServletRequest req)</SPAN><SPAN id=Codehighlighter1_245_645_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_245_645_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080"> 6</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    String code </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> (String)req.getSession().getAttribute(Constants.SESSION_CHECKSUM_CODE);<BR></SPAN><SPAN style="COLOR: #008080"> 7</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    String input </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> ValidatorUtils.getValueAsString(obj,field.getProperty());<BR></SPAN><SPAN style="COLOR: #008080"> 8</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top><BR></SPAN><SPAN style="COLOR: #008080"> 9</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    logger.debug(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Code: </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> code </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">, input: </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000"> input);<BR></SPAN><SPAN style="COLOR: #008080">10</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">(code.equalsIgnoreCase(input))<BR></SPAN><SPAN style="COLOR: #008080">11</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>      </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">true</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080">12</SPAN><SPAN style="COLOR: #000000"><IMG id=Codehighlighter1_536_641_Open_Image onclick="this.style.display='none'; Codehighlighter1_536_641_Open_Text.style.display='none'; Codehighlighter1_536_641_Closed_Image.style.display='inline'; Codehighlighter1_536_641_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_536_641_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_536_641_Closed_Text.style.display='none'; Codehighlighter1_536_641_Open_Image.style.display='inline'; Codehighlighter1_536_641_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN id=Codehighlighter1_536_641_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_536_641_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">13</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>      errors.add(field.getKey(),Resources.getActionMessage(req,action,field));<BR></SPAN><SPAN style="COLOR: #008080">14</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align=top>      </SPAN><SPAN style="COLOR: #0000ff">return</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">false</SPAN><SPAN style="COLOR: #000000">;<BR></SPAN><SPAN style="COLOR: #008080">15</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">16</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>  }</SPAN></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">17</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN></DIV><BR>娉ㄩ噴錛?BR>1銆佺1琛岋細MyValidator娌℃湁浠諱綍鐖剁被錛岃繍琛屾椂Validator閫氳繃reflection鐢熸垚瀵硅薄<BR>2銆佺4琛岋細鏍¢獙鏂規硶鍙殢鎰忓懡鍚嶏紝閫氳繃reflection璋冪敤錛屼絾鍙傛暟蹇呴』鎸夌収瑙勮寖<BR>3銆佺6琛岋細浠巗ession涓彇鍑哄浘鐗囦腑鐨勫瓧絎︿覆<BR>4銆佺7琛岋細寰楀埌鐢ㄦ埛杈撳叆鐨勫鹼紝Struts鍦ㄨ繖閲岀敤Field綾誨琛ㄥ崟瀛楁榪涜浜嗗皝瑁咃紝鑰孎ield鍏蜂綋灝佽鐨勫瓧孌靛湪validation.xml涓畾涔夛紝瑙?A HREF="/fidodido/archive/2006/03/07/34123.html">涓婄瘒</A><BR><BR>validator-rules.xml涓殑瀹氫箟錛?BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008080"> 1</SPAN><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">validator </SPAN><SPAN style="COLOR: #ff0000">name</SPAN><SPAN style="COLOR: #0000ff">="codeinput"</SPAN><SPAN style="COLOR: #ff0000"><BR></SPAN><SPAN style="COLOR: #008080"> 2</SPAN><SPAN style="COLOR: #ff0000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>            classname</SPAN><SPAN style="COLOR: #0000ff">="consultII.web.utils.MyValidator"</SPAN><SPAN style="COLOR: #ff0000"><BR></SPAN><SPAN style="COLOR: #008080"> 3</SPAN><SPAN style="COLOR: #ff0000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>               method</SPAN><SPAN style="COLOR: #0000ff">="validateCodeInput"</SPAN><SPAN style="COLOR: #ff0000"><BR></SPAN><SPAN style="COLOR: #008080"> 4</SPAN><SPAN style="COLOR: #ff0000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>         methodParams</SPAN><SPAN style="COLOR: #0000ff">="java.lang.Object,<BR></SPAN><SPAN style="COLOR: #008080"> 5</SPAN><SPAN style="COLOR: #0000ff"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>                       org.apache.commons.validator.ValidatorAction,<BR></SPAN><SPAN style="COLOR: #008080"> 6</SPAN><SPAN style="COLOR: #0000ff"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>                       org.apache.commons.validator.Field,<BR></SPAN><SPAN style="COLOR: #008080"> 7</SPAN><SPAN style="COLOR: #0000ff"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>                       org.apache.struts.action.ActionMessages,<BR></SPAN><SPAN style="COLOR: #008080"> 8</SPAN><SPAN style="COLOR: #0000ff"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>                       javax.servlet.http.HttpServletRequest"</SPAN><SPAN style="COLOR: #ff0000"><BR></SPAN><SPAN style="COLOR: #008080"> 9</SPAN><SPAN style="COLOR: #ff0000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top>                  msg</SPAN><SPAN style="COLOR: #0000ff">="errors.code"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">10</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN></DIV><BR>validation.xml涓殑瀹氫箟錛?BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">field </SPAN><SPAN style="COLOR: #ff0000">property</SPAN><SPAN style="COLOR: #0000ff">="input"</SPAN><SPAN style="COLOR: #ff0000"> depends</SPAN><SPAN style="COLOR: #0000ff">="required,codeinput"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"><</SPAN><SPAN style="COLOR: #800000">field </SPAN><SPAN style="COLOR: #ff0000">property</SPAN><SPAN style="COLOR: #0000ff">="input"</SPAN><SPAN style="COLOR: #ff0000"> depends</SPAN><SPAN style="COLOR: #0000ff">="required,codeinput"</SPAN><SPAN style="COLOR: #0000ff">/></SPAN></DIV><BR>鍦╯ervlet涓皢鏍¢獙鐮佸瓨鍏ession浼犻掔粰Validator錛?BR><BR> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">req.getSession().setAttribute(Constants.SESSION_CHECKSUM_CODE,code);</SPAN></DIV> <P>榪欐牱灝監K浜嗐?/P> <H3>鍥涖佸皢鏍¢獙閫昏緫杞瘧鎴怞avaScript浠g爜</H3> <P>鐢變簬Validator鐨勪唬鐮佸湪鏈嶅姟鍣ㄧ琚墽琛岋紝鍥犳濡傛灉鏍¢獙璇鋒眰棰戠箒鐨勮瘽灝嗕細瀵規湇鍔″櫒绔犳垚涓嶅皬鐨勬ц兘鍘嬪姏銆傝冭檻鍒拌繖涓棶棰橈紝Struts涓彁渚涚殑鏍¢獙鏂規硶鍙互琚漿璇戞垚JavaScript浠g爜宓屽叆欏甸潰錛岃繖鏍鋒牎楠屽皢鍦ㄥ鎴風榪涜銆?BR>浣跨敤鏃訛紝鍙鍦ㄩ〉闈腑宓屽叆涓ゆ潯Struts html鏍囩搴撲腑鐨勬爣絳撅細</P> <DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008080">1</SPAN><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">html:javascript formName </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">formName</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">/></SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000"><</SPAN><SPAN style="COLOR: #000000">html:form action </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.aygfsteel.com/images/dot.gif"></SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> onsubmit </SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">return validateFormName(this);</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #000000">/></SPAN></DIV><BR>鍏朵腑絎竴琛屽畾涔変簡闇瑕佽漿璇戠殑FormBean鍚嶏紝榪欓噷鏄渇ormName鈥濓紝絎簩琛屽湪璇ormBean灝佽鐨勮〃鍗曚笂娣誨姞onsubmuit浜嬩歡錛岃岃浜嬩歡璋冪敤鐨勫嚱鏁頒細鍦↗SP璇鋒眰鍒板鎴風鏃剁敱Validator妗嗘灦鑷姩鐢熸垚錛屽懡鍚嶈鍒欎負鈥渧alidateXXX鈥濓紝鍏朵腑鈥淴XX鈥濆氨鏄涓琛屼腑鐨刦ormName灞炴х殑鍊鹼紝榪欓噷鏄渇ormName鈥濓紝鍥犳鐢熸垚鐨勫嚱鏁板悕涓衡渧alidateFormName鈥濄?BR>鍏充簬涓鴻嚜瀹氫箟鐨刅alidator錛堝涓婃枃鐨凪yValidator錛夊垱寤篔S浠g爜錛屾垜娌℃湁瀹炵幇榪囷紝鎰熷叴瓚g殑璇濆彲浠ュ幓Struts瀹樼綉涓婃壘涓涓嬬浉鍏蟲枃妗c?img src ="http://www.aygfsteel.com/fidodido/aggbug/34130.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fidodido/" target="_blank">^ Mustang ^</a> 2006-03-07 18:38 <a href="http://www.aygfsteel.com/fidodido/archive/2006/03/07/34130.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦⊿truts涓嬌鐢╒alidator瀹炵幇鍙厤緗殑淇℃伅鏍¢獙錛堜竴錛?/title><link>http://www.aygfsteel.com/fidodido/archive/2006/03/07/34123.html</link><dc:creator>^ Mustang ^</dc:creator><author>^ Mustang ^</author><pubDate>Tue, 07 Mar 2006 09:53:00 GMT</pubDate><guid>http://www.aygfsteel.com/fidodido/archive/2006/03/07/34123.html</guid><wfw:comment>http://www.aygfsteel.com/fidodido/comments/34123.html</wfw:comment><comments>http://www.aygfsteel.com/fidodido/archive/2006/03/07/34123.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fidodido/comments/commentRss/34123.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fidodido/services/trackbacks/34123.html</trackback:ping><description><![CDATA[     鎽樿: 鍦⊿truts涓鐢ㄦ埛杈撳叆淇℃伅鐨勬牎楠屼竴鑸湪FromBean涓繘琛岋紙闄ら潪闇瑕佽闂暟鎹簱榪涜璇稿鐧誨綍淇℃伅鐨勬牎楠岋紝鍥犱負榪欐槸Action鐨勫伐浣滐級錛屾湰鏂囧皢闃愯堪濡備綍鍦⊿truts涓疄鐜板彲閰嶇疆鐨勪俊鎭牎楠屻?涓銆佸湪FormBean涓墜宸ュ疄鐜?鏈綆鍗曠殑鏂規硶鏄洿鎺ュ湪FormBean涓噸鍐橝ctionForm綾葷殑validate鏂規硶錛寁alidate鏂規硶絳懼悕濡備笅錛?public ActionErrors...  <a href='http://www.aygfsteel.com/fidodido/archive/2006/03/07/34123.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/fidodido/aggbug/34123.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fidodido/" target="_blank">^ Mustang ^</a> 2006-03-07 17:53 <a href="http://www.aygfsteel.com/fidodido/archive/2006/03/07/34123.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">莱芜市</a>| <a href="http://" target="_blank">贵定县</a>| <a href="http://" target="_blank">嘉定区</a>| <a href="http://" target="_blank">宁夏</a>| <a href="http://" target="_blank">多伦县</a>| <a href="http://" target="_blank">内乡县</a>| <a href="http://" target="_blank">喀喇沁旗</a>| <a href="http://" target="_blank">屏东市</a>| <a href="http://" target="_blank">克什克腾旗</a>| <a href="http://" target="_blank">涿鹿县</a>| <a href="http://" target="_blank">四子王旗</a>| <a href="http://" target="_blank">沧州市</a>| <a href="http://" target="_blank">康马县</a>| <a href="http://" target="_blank">新蔡县</a>| <a href="http://" target="_blank">将乐县</a>| <a href="http://" target="_blank">清徐县</a>| <a href="http://" target="_blank">浑源县</a>| <a href="http://" target="_blank">公安县</a>| <a href="http://" target="_blank">乌拉特前旗</a>| <a href="http://" target="_blank">城口县</a>| <a href="http://" target="_blank">增城市</a>| <a href="http://" target="_blank">华亭县</a>| <a href="http://" target="_blank">开原市</a>| <a href="http://" target="_blank">玛纳斯县</a>| <a href="http://" target="_blank">烟台市</a>| <a href="http://" target="_blank">垣曲县</a>| <a href="http://" target="_blank">海阳市</a>| <a href="http://" target="_blank">玛曲县</a>| <a href="http://" target="_blank">基隆市</a>| <a href="http://" target="_blank">阿克苏市</a>| <a href="http://" target="_blank">庆元县</a>| <a href="http://" target="_blank">桐城市</a>| <a href="http://" target="_blank">孟州市</a>| <a href="http://" target="_blank">井研县</a>| <a href="http://" target="_blank">瓮安县</a>| <a href="http://" target="_blank">吉安市</a>| <a href="http://" target="_blank">安达市</a>| <a href="http://" target="_blank">凉山</a>| <a href="http://" target="_blank">阳春市</a>| <a href="http://" target="_blank">杨浦区</a>| <a href="http://" target="_blank">泽普县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>