锘??xml version="1.0" encoding="utf-8" standalone="yes"?>色婷婷av一区二区三区丝袜美腿,午夜在线电影亚洲一区,四季av在线一区二区三区 http://www.aygfsteel.com/simen/category/33022.html寮曞鍒嗗尯zh-cnWed, 16 Jul 2008 01:12:07 GMTWed, 16 Jul 2008 01:12:07 GMT60Struts2 addActionError鏃?浣跨敤action鏍囩鐨勬敞鎰忛棶棰?/title><link>http://www.aygfsteel.com/simen/articles/215103.html</link><dc:creator>鎴戞槸涓鍧楃‖鐩?/dc:creator><author>鎴戞槸涓鍧楃‖鐩?/author><pubDate>Tue, 15 Jul 2008 22:43:00 GMT</pubDate><guid>http://www.aygfsteel.com/simen/articles/215103.html</guid><wfw:comment>http://www.aygfsteel.com/simen/comments/215103.html</wfw:comment><comments>http://www.aygfsteel.com/simen/articles/215103.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/simen/comments/commentRss/215103.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/simen/services/trackbacks/215103.html</trackback:ping><description><![CDATA[ <font size="2">struts.xml閰嶇疆鏂囦歡</font> <font size="2"> <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <span style="color: rgb(0, 0, 0);">聽聽聽聽</span> <span style="color: rgb(0, 0, 255);"><</span> <span style="color: rgb(128, 0, 0);">action聽</span> <span style="color: rgb(255, 0, 0);">name</span> <span style="color: rgb(0, 0, 255);">="*_*_*"</span> <span style="color: rgb(255, 0, 0);">聽class</span> <span style="color: rgb(0, 0, 255);">="{0}Action"</span> <span style="color: rgb(0, 0, 255);">></span> <span style="color: rgb(0, 0, 0);"> <br />聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);"><</span> <span style="color: rgb(128, 0, 0);">result聽</span> <span style="color: rgb(255, 0, 0);">name</span> <span style="color: rgb(0, 0, 255);">="input"</span> <span style="color: rgb(255, 0, 0);">聽type</span> <span style="color: rgb(0, 0, 255);">="freemarker"</span> <span style="color: rgb(0, 0, 255);">></span> <span style="color: rgb(0, 0, 0);">/WEB-INF/template/strong/{1}/{1}_{2}_XianShi.ftl</span> <span style="color: rgb(0, 0, 255);"></</span> <span style="color: rgb(128, 0, 0);">result</span> <span style="color: rgb(0, 0, 255);">></span> <span style="color: rgb(0, 0, 0);"> <br />聽聽聽聽聽聽</span> <span style="color: rgb(0, 0, 255);"><</span> <span style="color: rgb(128, 0, 0);">result聽</span> <span style="color: rgb(255, 0, 0);">name</span> <span style="color: rgb(0, 0, 255);">="success"</span> <span style="color: rgb(255, 0, 0);">聽type</span> <span style="color: rgb(0, 0, 255);">="freemarker"</span> <span style="color: rgb(0, 0, 255);">></span> <span style="color: rgb(0, 0, 0);">/WEB-INF/template/strong/{1}/{0}.ftl</span> <span style="color: rgb(0, 0, 255);"></</span> <span style="color: rgb(128, 0, 0);">result</span> <span style="color: rgb(0, 0, 255);">></span> <span style="color: rgb(0, 0, 0);"> <br />聽聽聽聽</span> <span style="color: rgb(0, 0, 255);"></</span> <span style="color: rgb(128, 0, 0);">action</span> <span style="color: rgb(0, 0, 255);">></span> </div> <br /> <br />鐧誨綍鎿嶄綔Action 瀵瑰簲Action鍚嶄負sxt_DengLu_CaoZuo 瀵瑰簲鐨?span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">input </span><span style="color: rgb(0, 0, 0);"></span>result涓?span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">WEB</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">INF</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">template</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">strong</span><span style="color: rgb(0, 0, 0);">/sxt</span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);"></span>sxt_DengLu_XianShi<span style="color: rgb(0, 0, 0);">.ftl<br /><br /></span>Sxt_DengLu_CaoZuoAction.java<br /></font> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <font size="2"> <span style="color: rgb(0, 0, 0);">@Component(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">sxt_DengLu_CaoZuoAction</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">)</span> <span style="color: rgb(0, 128, 0);">//</span> <span style="color: rgb(0, 128, 0);">浣跨敤浜哠pring聽榪欓噷鐨勬剰鎬濇槸灝嗘湰Action瑁呴厤涓轟竴涓狪D涓簊xt_DengLu_CaoZuoAction鐨凚ean</span> <span style="color: rgb(0, 128, 0);"> <br /> </span> <span style="color: rgb(0, 0, 0);">@Scope(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">prototype</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">)</span> <span style="color: rgb(0, 128, 0);">//</span> <span style="color: rgb(0, 128, 0);">浣滅敤鍩熶負prototype聽鍗蟲瘡嬈¢兘浣跨敤鏂扮殑瀵硅薄</span> <span style="color: rgb(0, 128, 0);"> <br /> </span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">class</span> <span style="color: rgb(0, 0, 0);">聽Sxt_DengLu_CaoZuoAction聽</span> <span style="color: rgb(0, 0, 255);">extends</span> <span style="color: rgb(0, 0, 0);">聽ActionSupport聽</span> <span style="color: rgb(0, 0, 255);">implements</span> <span style="color: rgb(0, 0, 0);">聽聽ModelDriven</span> <span style="color: rgb(0, 0, 0);"><</span> <span style="color: rgb(0, 0, 0);">MYh</span> <span style="color: rgb(0, 0, 0);">></span> <span style="color: rgb(0, 0, 0);">聽{</span> </font> </div> <font size="2"> <br /> <br />瀵艱埅鍒楄〃Action 瀵瑰簲Action鍚嶄負sxt_DaoHang_XianShi 瀵瑰簲鐨?span style="color: rgb(0, 0, 0);">success </span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span>result涓?span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">WEB</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">INF</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">template</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">strong</span><span style="color: rgb(0, 0, 0);">/sxt</span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);"></span>sxt_DaoHang_XianShi<span style="color: rgb(0, 0, 0);">.ftl<br /><br /></span>Sxt_DaoHang_XianShiAction.java<br /></font> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <font size="2"> <span style="color: rgb(0, 0, 0);">@Component(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">sxt_DaoHang_XianShiAction</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">)</span> <span style="color: rgb(0, 128, 0);">//</span> <span style="color: rgb(0, 128, 0);">聽鍚屼笂</span> <span style="color: rgb(0, 128, 0);"> <br /> </span> <span style="color: rgb(0, 0, 0);">@Scope(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">prototype</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">)</span> <span style="color: rgb(0, 128, 0);">//</span> <span style="color: rgb(0, 128, 0);">鍚屼笂</span> <span style="color: rgb(0, 128, 0);"> <br /> </span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">class</span> <span style="color: rgb(0, 0, 0);">聽Sxt_DaoHang_XianShiAction聽</span> <span style="color: rgb(0, 0, 255);">extends</span> <span style="color: rgb(0, 0, 0);">聽ActionSupport聽聽</span> <span style="color: rgb(0, 0, 255);">implements</span> <span style="color: rgb(0, 0, 0);">聽Preparable{<br /></span> </font> </div> <font size="2"> <br /> <br /> <span style="color: rgb(0, 0, 0);"> </span> <span style="color: rgb(0, 0, 0);"> </span>sxt_DengLu_XianShi<span style="color: rgb(0, 0, 0);">.ftl</span><span style="color: rgb(0, 0, 0);"><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">聽浣跨敤action鏍囩灝嗗鑸垪琛ㄥ鍏ュ埌鏈〉闈?/span><span style="color: rgb(0, 128, 0);"><br /></span><span style="color: rgb(0, 0, 0);">聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">@s.action聽name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">sxt_DaoHang_XianShi</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽namespace</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/ht</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽executeResult</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">聽ignoreContextParams</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">/></span><span style="color: rgb(0, 0, 0);"><br />聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">@s.form聽action</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">sxt_DengLu_CaoZuo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">form_login</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽theme</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">simple</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">table聽align</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">CENTER</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">table_login</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">tr</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">td聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">td_label</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">鐧誨綍鍚?/span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">td</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">td聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">td_input</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">><</span><span style="color: rgb(0, 0, 0);">@s.textfield聽label</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${action.getText('TYH_YHDLM')}</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">yhDlm</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">yhDlm</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">/></</span><span style="color: rgb(0, 0, 0);">td</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">tr</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">tr</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">td聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">td_label</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);">瀵嗙爜</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">td</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">td聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">td_input</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">><</span><span style="color: rgb(0, 0, 0);">@s.password聽label</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${action.getText('TYH_YHMM')}</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">yhMm</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">yhMm</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">/></</span><span style="color: rgb(0, 0, 0);">td</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">tr</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">tr</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">td聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">td_label</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">>&</span><span style="color: rgb(0, 0, 0);">nbsp;</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">td</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">td聽</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">td_input</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">><</span><span style="color: rgb(0, 0, 0);">p聽id</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">p_submit</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">@s.submit聽value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${action.getText('PAGE_DENG_LU')}</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 0);">/></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">input聽type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">button</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">聽value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${action.getText('PAGE_TUI_CHU')}</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">p</span><span style="color: rgb(0, 0, 0);">></</span><span style="color: rgb(0, 0, 0);">td</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">tr</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">table</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">@s.form</span><span style="color: rgb(0, 0, 0);">></span></div><br /><br /></span>sxt_DaoHang_XianShi<span style="color: rgb(0, 0, 0);">.ftl<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">ul</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">#list聽listDaoHangLieBiao聽as聽nav</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">li</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽聽聽${nav}<br />聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">li</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br />聽聽</span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">#list</span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 0);"></</span><span style="color: rgb(0, 0, 0);">ul</span><span style="color: rgb(0, 0, 0);">></span></div><br /><br /></span>Sxt_DengLu_CaoZuoAction.java 鎵цexecute<br /></font> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <font size="2"> <span style="color: rgb(0, 0, 0);">聽聽@Override<br />聽聽</span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽String聽execute()聽</span> <span style="color: rgb(0, 0, 255);">throws</span> <span style="color: rgb(0, 0, 0);">聽Exception聽{<br />聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">this</span> <span style="color: rgb(0, 0, 0);">.addActionError(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">緋葷粺閿欒</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">);<br />聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">return</span> <span style="color: rgb(0, 0, 0);">聽INPUT;<br />聽聽}</span> </font> </div> <font size="2"> <br /> <br />Sxt_DaoHang_XianShiAction.java 鎵цexecute<br /></font> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <font size="2"> <span style="color: rgb(0, 0, 0);">聽聽@Override<br />聽聽</span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽String聽execute()聽</span> <span style="color: rgb(0, 0, 255);">throws</span> <span style="color: rgb(0, 0, 0);">聽Exception聽{<br />聽聽聽聽ActionContext聽ctx聽</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">聽ActionContext.getContext();<br />聽聽聽聽ctx.put(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">listDaoHangLieBiao</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">,聽</span> <span style="color: rgb(0, 0, 255);">new</span> <span style="color: rgb(0, 0, 0);">聽ArrayList());<br />聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">return</span> <span style="color: rgb(0, 0, 0);">聽SUCCESS;<br />聽聽}</span> </font> </div> <font size="2"> <br />榪欎釜鏃跺欐墽琛屼唬鐮?freemarker浼氭彁紺衡?lt;pre>Expression listDaoHangLieBiao is undefined</pre>鈥濅負浠涔堜細榪欐牱浜嗭紵<br />浠旂粏鏌ユ壘浜嗙浉鍏寵祫鏂?鍙戠幇apache鐨勬枃妗?http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html涓啓閬?br /></font> <p> <font size="2">When validation fails, we typically forward back to the same server page, so that the errors can be presented, and so that the client can fix the problem and resubmit the form. Of course, aside from the errors, we may also need to present rich controls, like drop down lists. </font> </p> <p> <font size="2">If we try to populate rich controls in an <tt>Action</tt> method, like <tt>input</tt> or <tt>execute</tt>, and validation fails, the method will not be invoked, and the controls are not populated. Two alternative ways to populate controls are the <tt>Preparable</tt> interface and the <tt>action</tt> tag. <br /></font> </p> <p> <font size="2">澶ц嚧鐨勬剰鎬濇槸浣嗗嚭鐜皏alidation閿欒鐨勬椂鍊欎細褰卞搷鍒癆ction鐨勬甯告墽琛岋紝榪欎釜鏃跺欏簲璇ュ疄鐜?tt>Preparable</tt>鎺ュ彛涓殑prepare()鏂規硶錛岃繖涓柟娉曚腑鐨勬搷浣滀笉浼氬洜涓簐alidation閿欒鑰屼笉鎵ц銆?/font> </p> <p> <font size="2">鑱旀兂鍒頒笂闈㈢殑閿欙紝浼氫笉浼氫篃鏄洜涓篴ddActionError鑰屽鑷翠笉鑳芥甯鎬嬌鐢╝ction鏍囩浜嗐備負姝ゅ湪Sxt_DaoHang_XianShiAction涓疄鐜癙reparable鎺ュ彛騫跺湪prepare()鏂規硶涓璸ut <span style="color: rgb(0, 0, 0);">listDaoHangLieBiao銆備慨鏀逛唬鐮佸涓?/span></font> </p> <p> <font size="2">Sxt_DaoHang_XianShiAction.java</font> </p> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <font size="2"> <span style="color: rgb(0, 0, 0);">@Component(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">sxt_DaoHang_XianShiAction</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">)<br />@Scope(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">prototype</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">)<br /></span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">class</span> <span style="color: rgb(0, 0, 0);">聽Sxt_DaoHang_XianShiAction聽</span> <span style="color: rgb(0, 0, 255);">extends</span> <span style="color: rgb(0, 0, 0);">聽ActionSupport聽聽</span> <span style="color: rgb(0, 0, 255);">implements</span> <span style="color: rgb(0, 0, 0);">聽Preparable{<br /><br />聽聽@Override<br />聽聽</span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽String聽execute()聽</span> <span style="color: rgb(0, 0, 255);">throws</span> <span style="color: rgb(0, 0, 0);">聽Exception聽{<br />聽聽聽聽</span> <span style="color: rgb(0, 0, 255);">return</span> <span style="color: rgb(0, 0, 0);">聽SUCCESS;<br />聽聽}<br /><br />聽聽</span> <span style="color: rgb(0, 0, 255);">public</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 255);">void</span> <span style="color: rgb(0, 0, 0);">聽prepare()聽</span> <span style="color: rgb(0, 0, 255);">throws</span> <span style="color: rgb(0, 0, 0);">聽Exception聽{<br />聽聽聽聽ActionContext聽ctx聽</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">聽ActionContext.getContext();<br />聽聽聽聽ctx.put(</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">listDaoHangLieBiao</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">,聽Constants.DAO_HANG_LIE_BIAO);<br />聽聽}<br />}<br /></span> </font> </div> <font size="2"> <br />鍐嶆墽琛?=鎴愬姛銆?/font> <p> <font size="2">鎬葷粨 Struts2鐩墠鐨勮祫鏂欑浉瀵筍truts1鏉ヨ鏄潪甯稿皯鐨勶紝灝ゅ叾鏄爺絀剁殑寰堟繁鐨勮祫鏂欙紝鐪嬫潵鐜板湪鎯沖濂絊truts2榪樺繀欏諱粠Apache鐨勫師濮嬭祫鏂欎腑瀵繪壘銆?/font> </p> <p> <font size="2">鍙﹀涓婇潰浣跨敤action鏍囩鐨勬椂鍊欐槸榪欐牱鍐欑殑</font> </p> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"> <!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--> <font size="2"> <span style="color: rgb(0, 0, 0);"><</span> <span style="color: rgb(0, 0, 0);">@s.action聽name</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">sxt_DaoHang_XianShi</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">聽namespace</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">/ht</span> <span style="color: rgb(0, 0, 0);">"</span> <span style="color: rgb(0, 0, 0);">聽executeResult</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 255);">true</span> <span style="color: rgb(0, 0, 0);">聽ignoreContextParams</span> <span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 255);">true</span> <span style="color: rgb(0, 0, 0);">聽</span> <span style="color: rgb(0, 0, 0);">/></span> </font> </div> <font size="2"> <br />娉ㄦ剰鍜孲truts2鐨勬爣絳懼啓娉曠暐鏈変笉鍚岋紝鍥犱負榪欓噷浣跨敤浜咶reemarker鍋氭ā鏉匡紝鎵浠ヤ嬌鐢ㄧ殑freemarker鐨勫啓娉曪紝鐗瑰埆鐨勬槸<span style="color: rgb(0, 0, 0);">executeResult</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">聽ignoreContextParams</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">鑰屾寜鐓truts2鐨勬爣絳懼簲璇ユ槸</span><span style="color: rgb(0, 0, 0);">executeResult</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">"true"</span><span style="color: rgb(0, 0, 0);"> ignoreContextParams</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">"true"</span></font> <p> <font size="2"> <span style="color: rgb(0, 0, 255);"> </span> <span style="color: rgb(0, 0, 0);"> </span>鍝堝搱 灝忓皬涓や釜寮曞彿 瀹蟲垜鎶樿吘N涓皬鏃?br /><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span><span style="color: rgb(0, 0, 0);"></span></font> </p> <img src ="http://www.aygfsteel.com/simen/aggbug/215103.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/simen/" target="_blank">鎴戞槸涓鍧楃‖鐩?/a> 2008-07-16 06:43 <a href="http://www.aygfsteel.com/simen/articles/215103.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>