锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品极品在线,日本美女一区二区三区,久久精品色图http://www.aygfsteel.com/zxfahjz/category/10440.html杞歡寮鍙戠浉鍏蟲柟闈㈢殑瀛︿範zh-cnTue, 27 Feb 2007 12:23:57 GMTTue, 27 Feb 2007 12:23:57 GMT60logichttp://www.aygfsteel.com/zxfahjz/archive/2006/08/14/63510.htmlzxfzxfMon, 14 Aug 2006 09:05:00 GMThttp://www.aygfsteel.com/zxfahjz/archive/2006/08/14/63510.htmlhttp://www.aygfsteel.com/zxfahjz/comments/63510.htmlhttp://www.aygfsteel.com/zxfahjz/archive/2006/08/14/63510.html#Feedback0http://www.aygfsteel.com/zxfahjz/comments/commentRss/63510.htmlhttp://www.aygfsteel.com/zxfahjz/services/trackbacks/63510.html<logic:equal parameter="showGreen" value="true">
true
</logic:equal>

zxf 2006-08-14 17:05 鍙戣〃璇勮
]]>
娑堟伅(閿欒)鏄劇ず http://www.aygfsteel.com/zxfahjz/archive/2006/06/12/52129.htmlzxfzxfMon, 12 Jun 2006 02:07:00 GMThttp://www.aygfsteel.com/zxfahjz/archive/2006/06/12/52129.htmlhttp://www.aygfsteel.com/zxfahjz/comments/52129.htmlhttp://www.aygfsteel.com/zxfahjz/archive/2006/06/12/52129.html#Feedback0http://www.aygfsteel.com/zxfahjz/comments/commentRss/52129.htmlhttp://www.aygfsteel.com/zxfahjz/services/trackbacks/52129.html
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("userForm.insert", info.getUserName());
messages.add("activationDate", new ActionMessage("userForm.active", info.getDateLength());

濡備笅鍙互鏄劇ず鎵鏈?/font>娑堟伅錛屽茍鐢?lt;li>灝嗗畠浠斁鍏ヤ竴涓猯ist錛屽啀鍔犱笂鍙畾鍒剁殑header/footer
<html:messages id="message" header="errors.header" footer="errors.footer">
<li><bean:write name="message"/></li>
</html:messages>

濡備笅鍙互鎸囧畾鍙樉紺?font color="#ff0000">鏌愮
message
<html:messages id="message" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>">
<li><bean:write name="message"/></li>
</html:messages>

<html:messages id="message" property="activationDate">
<li><bean:write name="message"/></li>
</html:messages>

鎶奙essages鎹㈡垚Errors灝辨槸閿欒鏄劇ず錛屼負浜嗙畝渚匡紝緇忓父涓涓?lt;html:errors/>浜嗕簨

zxf 2006-06-12 10:07 鍙戣〃璇勮
]]>
web.xml鍏冪礌浠嬬粛http://www.aygfsteel.com/zxfahjz/archive/2006/04/27/43478.htmlzxfzxfThu, 27 Apr 2006 01:49:00 GMThttp://www.aygfsteel.com/zxfahjz/archive/2006/04/27/43478.htmlhttp://www.aygfsteel.com/zxfahjz/comments/43478.htmlhttp://www.aygfsteel.com/zxfahjz/archive/2006/04/27/43478.html#Feedback0http://www.aygfsteel.com/zxfahjz/comments/commentRss/43478.htmlhttp://www.aygfsteel.com/zxfahjz/services/trackbacks/43478.html
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
聽聽聽 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
聽聽聽 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
聽聽聽 version="2.4">

</web-app>

鍏跺畠鐨勫厓绱犻兘鏀懼湪<web-app></web-app>涔嬩腑銆?br />
<discription></discription> 鏄绔欏彴鐨勬弿榪?br /><display-name></display-name> 瀹氫箟绔欏彴鐨勫悕縐?br /><distributable/> 鏄寚瀹氳绔欏彴鏄惁鍙垎甯冨紡澶勭悊

<context-param></context-param> 鐢ㄦ潵璁懼畾web绔欏彴鐨勭幆澧冨弬鏁幫紝瀹冨寘鍚袱涓瓙鍏冪礌錛?br />聽聽聽 <param-name></param-name> 鐢ㄦ潵鎸囧畾鍙傛暟鐨勫悕縐?br />聽聽聽 <param-value></param-value> 鐢ㄦ潵璁懼畾鍙傛暟鍊?br />
姣斿錛?/span>
<context-param>
聽聽聽 <param-name>my_param</param-name>
聽聽聽 <param-value>hello</param-value>
</context-param>

鍦ㄦ璁懼畾鐨勫弬鏁幫紝鍙互鍦╯ervlet涓敤 getServletContext().getInitParameter("my_param") 鏉ュ彇寰?br />

<filter></filter> 鏄敤鏉ュ0鏄巉ilter鐨勭浉鍏寵瀹氾紝瀹冨寘鍚互涓嬪瓙鍏冪礌錛?br />聽聽聽 <filter-name></filter-name> 榪欏綋鐒跺氨鏄寚瀹歠ilter鐨勫悕瀛?br />聽聽聽 <filter-class></filter-class> 榪欐槸鐢ㄦ潵瀹氫箟filter鐨勭被鐨勫悕縐?br />聽聽聽 <init-param></init-param> 鐢ㄦ潵瀹氫箟鍙傛暟錛屽畠鏈変袱涓瓙鍏冪礌錛?br />聽聽聽 聽聽聽 <param-name></param-name> 鐢ㄦ潵鎸囧畾鍙傛暟鐨勫悕縐?br />聽聽 聽 聽聽 <param-value></param-value> 鐢ㄦ潵璁懼畾鍙傛暟鍊?br />
姣斿錛?/span>
<filter>
聽聽聽 聽聽聽 <filter-name>setCharacterEncoding</filter-name>
聽聽聽 聽聽聽 <filter-class>com.myTest.setCharacterEncodingFilter</filter-class>
聽聽聽 聽聽聽 <init-param>
聽聽聽 聽聽聽 聽聽聽 <param-name>encoding</param-name>
聽聽聽 聽聽聽 聽聽聽 <param-value>GB2312</param-value>
聽聽聽 聽聽聽 </init-param>
</filter>

涓?/span><filter></filter>鍚屾椂浣跨敤鐨勬槸<filter-mapping></filter-mapping> 鐢ㄦ潵瀹氫箟filter鎵瀵瑰簲鐨刄RL錛屽畠鏈変袱涓瓙鍏冪礌錛?br />聽聽聽 <filter-name></filter-name> 鎸囧畾filter鐨勫悕瀛?br />聽聽聽 <url-pattern></url-pattern> 鎸囧畾filter鎵瀵瑰簲鐨刄RL

姣斿錛?/span>
<filter-mapping>
聽聽聽 聽聽聽 <filter-name>setCharacterEncoding</filter-name>
聽聽聽 聽聽聽 <url-pattern>/*</url-pattern>
</filter-mapping>


<listener></listener> 鐢ㄦ潵璁懼畾Listener鎺ュ彛錛屽畠鐨勪富瑕佸瓙鍏冪礌涓?br />聽聽聽 <listener-class></listener-class> 瀹氫箟Listener鐨勭被鍚嶇О

姣斿錛?/span>
<listener>
聽聽聽
<listener-class>com.myTest.ContextListener</listener-class>

</listener>

<servlet></servlet> 鐢ㄦ潵澹版槑涓涓猻ervlet鐨勬暟鎹紝涓昏鏈変互涓嬪瓙鍏冪礌錛?br />聽聽聽 <servlet-name>
</servlet-name> 鎸囧畾servlet鐨勫悕縐?br />聽聽聽 <servlet-class></servlet-class> 鎸囧畾servlet鐨勭被鍚嶇О
聽聽聽 <jsp-file></jsp-file> 鎸囧畾web绔欏彴涓殑鏌愪釜JSP緗戦〉鐨勫畬鏁磋礬寰?br />聽聽聽 <init-param></init-param> 鐢ㄦ潵瀹氫箟鍙傛暟錛屽拰鍓嶉潰鐨?lt;init-param>宸笉澶?br />
鍚屾牱錛屼笌<servlet></servlet>涓璧蜂嬌鐢ㄧ殑鏄?lt;servlet-mapping></servlet-mapping> 鐢ㄦ潵瀹氫箟servlet鎵瀵瑰簲鐨刄RL錛屽寘鍚袱涓瓙鍏冪礌錛?br />聽聽聽 <servlet-name></servlet-name> 鎸囧畾servlet鐨勫悕縐?br />聽聽聽 <url-pattern></url-pattern> 鎸囧畾servlet鎵瀵瑰簲鐨刄RL

姣斿錛?/span>
<servlet>
聽聽聽聽聽聽聽 <servlet-name>ShoppingServlet</servlet-name>
聽聽聽聽聽聽聽 <servlet-class>com.myTest.ShoppingServlet</servlet-class>
</servlet>
聽聽聽
<servlet-mapping>
聽聽聽聽聽聽聽 <servlet-name>ShoppingServlet</servlet-name>
聽聽聽聽聽聽聽 <url-pattern>/shop/ShoppingServlet</url-pattern>
</servlet-mapping>

<session-config></session-config> 鐢ㄦ潵瀹氫箟web绔欏彴涓殑session鍙傛暟錛屽寘鍚竴涓瓙鍏冪礌錛?/span>
聽聽聽 <session-timeout></session-timeout> 鐢ㄦ潵瀹氫箟榪欎釜web绔欏彴鎵鏈塻ession鐨勬湁鏁堟湡闄愶紝鍗曚綅涓哄垎閽?/span>

<mime-mapping></mime-mapping> 瀹氫箟鏌愪竴涓墿灞曞悕鍜屾煇涓涓狹IME Type鍋氬鏄狅紝鍖呭惈涓や釜瀛愬厓绱狅細
聽聽聽 <extension></extension> 鎵╁睍鍚嶇殑鍚嶇О
聽聽聽 <mime-type></mime-type> MIME鏍煎紡

姣斿錛?br /><mime-mapping>
聽聽聽 <extension>doc</extension>
聽聽聽 <mime-type>application/vnd.ms-word</mime-type>

</mime-mapping>
<mime-mapping>
聽聽聽 <extension>xls</extension>
聽聽聽 <mime-type>application/vnd.ms-excel</mime-type>

</mime-mapping>

<welcome-file-list></welcom-file-list> 鐢ㄦ潵瀹氫箟棣栭〉鐨勫垪鍗曪紝鍖呭惈涓涓瓙鍏冪礌錛?/span>
聽聽聽 <welcome-file></welcome-file> 鎸囧畾棣栭〉鐨勬枃浠跺悕縐?/span>

姣斿錛?br /><welcome-file-list>
聽聽聽 <welcome-file>index.jsp</welcome-file>
聽聽聽 <welcome-file>index.html</welcome-file>

</welcom-file-list>

<error-page></error-page> 鐢ㄦ潵澶勭悊閿欒浠g爜鎴栧紓甯哥殑欏甸潰錛屾湁涓変釜瀛愬厓绱狅細
聽聽聽 <error-code></error-code> 鎸囧畾閿欒浠g爜
聽聽聽 <exception-type></exception-type> 鎸囧畾涓涓狫AVA寮傚父綾誨瀷
聽聽聽 <location></location> 鎸囧畾鍦╳eb绔欏彴鍐呯殑鐩稿叧璧勬簮璺緞

姣斿錛?br /><error-page>
聽聽聽 <error-code>404</error-code>
聽聽聽 <location>/error404.jsp</location>

</error-page>
<error-page>
聽聽聽 <exception-type>java.lang.Exception</exception-type>

聽聽聽 <location>/exception.jsp</location>
</error-page>

<taglib></taglib> 鐢ㄦ潵璁懼畾JSP緗戦〉鎵鐢ㄥ埌鐨凾ag Library璺緞錛屾湁涓や釜瀛愬厓绱狅細
聽聽聽 <taglib-uri></taglib-uri> 瀹氫箟TLD鏂囦歡鐨刄RI錛屽湪JSP緗戦〉涓敤taglib鎸囦護渚垮彲鍙栧緱璇RI鐨凾LD鏂囦歡
聽聽聽 <taglib-location></taglib-location> 鎸囧畾TLD鏂囦歡鐩稿浜巜eb绔欏彴鐨勫瓨鏀句綅緗?br />
姣斿錛?/span>
<taglib>
聽 聽聽聽 <taglib-uri>myTaglib</taglib-uri>
聽 聽聽聽 <taglib-location>/WEB-INF/tlds/MyTaglib.tld</taglib-location>
</taglib>


<resource-ref></resource-ref> 瀹氫箟鍒╃敤JNDI鍙栧緱绔欏彴鍙埄鐢ㄧ殑璧勬簮錛屾湁浜斾釜瀛愬厓绱狅細
聽聽聽 <description></description> 璧勬簮璇存槑
聽聽聽 <rec-ref-name></rec-ref-name> 璧勬簮鍚嶇О
聽聽聽 <res-type></res-type> 璧勬簮縐嶇被
聽聽聽 <res-auth></res-auth> 璧勬簮緇忕敱Application鎴朇ontainer鏉ヨ鍙?br />聽聽聽 <res-sharing-scope></res-sharing-scope> 璧勬簮鏄惁鍙互鍏變韓錛屾湁Shareable鍜孶nshareable涓や釜鍊鹼紝榛樿涓?/span>
Shareable

姣斿錛岄厤緗暟鎹簱榪炴帴姹犲氨鍙湪姝ら厤緗細
<resource-ref>
聽聽聽 聽聽聽 <description>JNDI JDBC DataSource of shop</description>
聽聽聽 聽聽聽 <res-ref-name>jdbc/sample_db</res-ref-name>
聽聽聽 聽聽聽 <res-type>javax.sql.DataSource</res-type>
聽聽聽 聽聽聽 <res-auth>Container</res-auth>
</resource-ref>


zxf 2006-04-27 09:49 鍙戣〃璇勮
]]>
STRUTS 鑾峰彇緗戦〉鐨勬牴鐩綍瀹為檯鍦板潃http://www.aygfsteel.com/zxfahjz/archive/2006/04/20/42089.htmlzxfzxfThu, 20 Apr 2006 01:40:00 GMThttp://www.aygfsteel.com/zxfahjz/archive/2006/04/20/42089.htmlhttp://www.aygfsteel.com/zxfahjz/comments/42089.htmlhttp://www.aygfsteel.com/zxfahjz/archive/2006/04/20/42089.html#Feedback0http://www.aygfsteel.com/zxfahjz/comments/commentRss/42089.htmlhttp://www.aygfsteel.com/zxfahjz/services/trackbacks/42089.htmlString realpath = this.servlet.getServletContext().getRealPath("/");

zxf 2006-04-20 09:40 鍙戣〃璇勮
]]>
struts select閫夋嫨妗?/title><link>http://www.aygfsteel.com/zxfahjz/archive/2006/04/19/41829.html</link><dc:creator>zxf</dc:creator><author>zxf</author><pubDate>Wed, 19 Apr 2006 02:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/zxfahjz/archive/2006/04/19/41829.html</guid><wfw:comment>http://www.aygfsteel.com/zxfahjz/comments/41829.html</wfw:comment><comments>http://www.aygfsteel.com/zxfahjz/archive/2006/04/19/41829.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/zxfahjz/comments/commentRss/41829.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/zxfahjz/services/trackbacks/41829.html</trackback:ping><description><![CDATA[<html:optionsCollection name="xxxActionForm" property="xxxVector"/><br />xxxActionForm.getXxxVector();xxxActionForm.setXxxVector()<br />Vector xxxVector = new Vector();<br />xxxVector.add(new LabelValueBean(label,value));<img src ="http://www.aygfsteel.com/zxfahjz/aggbug/41829.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/zxfahjz/" target="_blank">zxf</a> 2006-04-19 10:33 <a href="http://www.aygfsteel.com/zxfahjz/archive/2006/04/19/41829.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍒╃敤Token鏈哄埗瑙e喅閲嶅閲嶅鎻愪氦闂http://www.aygfsteel.com/zxfahjz/archive/2006/04/12/40686.htmlzxfzxfWed, 12 Apr 2006 09:05:00 GMThttp://www.aygfsteel.com/zxfahjz/archive/2006/04/12/40686.htmlhttp://www.aygfsteel.com/zxfahjz/comments/40686.htmlhttp://www.aygfsteel.com/zxfahjz/archive/2006/04/12/40686.html#Feedback0http://www.aygfsteel.com/zxfahjz/comments/commentRss/40686.htmlhttp://www.aygfsteel.com/zxfahjz/services/trackbacks/40686.html 鍒╃敤Token鏈哄埗瑙e喅閲嶅閲嶅鎻愪氦闂

鍒╃敤Token瑙e喅閲嶅閲嶅鎻愪氦:
Struts鍒╃敤鍚屾浠ょ墝(Token)鐨勬柟寮忔潵瑙e喅Web搴旂敤涓噸澶嶆彁浜ょ殑闂,鍏舵満鍒舵槸鍦╢orm琛ㄥ崟涓鍔犱竴涓殣钘忕殑鍩?淇濆瓨褰撳墠浠ょ墝鍊?鐒跺悗鍦ㄧ▼搴忎腑鍒ゆ柇姝や護鐗屽兼槸鍚﹀悎娉?
org.apache.struts.action.Action綾繪彁渚涗簡鐩稿叧鎿嶄綔Token鐨勬柟娉?
1銆乮sTokenValie鏂規硶:
鍒ゆ柇瀛樺偍鍦ㄥ綋鍓嶇敤鎴蜂細璇濅腑鐨勪護鐗屽煎拰璇鋒眰鍙傛暟涓殑浠ょ墝鍊兼槸鍚﹀尮閰?濡傛灉鍖歸厤,榪斿洖true,鍙嶄箣榪斿洖false.鍙絎﹀悎涓嬪垪鎯呭喌涔嬩竴鐨?灝變細榪斿洖false:
涓嶅瓨鍦℉ttpSession瀵硅薄;
鍦╯ession鑼冨洿鍐呮病鏈変繚瀛樹護鐗屽?
鍦ㄨ姹傚弬鏁頒腑娌℃湁浠ょ墝鍊?
瀛樺偍鍦ㄥ綋鍓嶇敤鎴穝ession鑼冨洿鍐呯殑浠ょ墝鍊煎拰璇鋒眰鍙傛暟涓殑浠ょ墝鍊間笉鍖歸厤.
2銆乺esetToken鏂規硶:
浠庡綋鍓峴ession鑼冨洿鍐呭垹闄や護鐗屽睘鎬?
3銆乻aveToken鏂規硶:
鍒涘緩涓涓柊鐨勪護鐗?騫舵妸瀹冧繚瀛樺湪褰撳墠session鑼冨洿鍐?濡傛灉HttpSession涓嶅瓨鍦?灝遍鍏堝垱寤轟竴涓狧ttpSession瀵硅薄.

濡備綍鍒╃敤涓婅堪鏂規硶搴旂敤浠ょ墝鏈哄埗瑙e喅閲嶅鎻愪氦闂:
浠ョ敤鎴鋒敞鍐屼負渚?
鍦ㄧ敤鎴瘋姹俷ewUser.jsp涔嬪墠,棣栧厛鎶婅姹傝漿鍙戝埌PrepareAction,PrepareAction 璋冪敤saveToken鏂規硶,鍒涘緩涓涓柊鐨勪護鐗?騫跺皢浠ょ墝鍊間繚瀛樺湪褰撳墠HttpSession涓?鏂板垱寤虹殑),PrepareAction鎺ョ潃鎶婅姹傝漿鍙戠粰newUser.jsp.

newUser.jsp涓殑<html:form>鏍囩鑷姩鍒ゆ柇鍦╯ession鑼冨洿鍐呮槸鍚﹀瓨鍦═oken,濡傛灉瀛樺湪,灝辮嚜鍔ㄥ湪琛ㄥ崟涓敓鎴愪竴涓寘鍚玊oken淇℃伅鐨勯殣钘忓瓧孌?渚嬪:
<input type="hidden" name="org.apache.struts.taglib.html.TOKEN" value="....">

鍦ㄧ敤鎴鋒彁浜よ〃鍗曞悗,鐢盜nsertUserAction澶勭悊璇鋒眰.鍦↖nsertUserAction涓?璋冪敤isTokenValid鏂規硶,鍒ゆ柇褰撳墠鐢ㄦ埛浼氳瘽涓殑浠ょ墝鍊煎拰璇鋒眰鍙傛暟涓殑浠ょ墝鍊兼槸鍚﹀尮閰?濡傛灉鍖歸厤,灝辮皟鐢╮esetToken鏂規硶,鍒犻櫎Token,鐒跺悗鎵ц鎻掑叆鏁版嵁鎿嶄綔.濡傛灉涓嶅尮閰?榪斿洖鐩稿叧閿欒鎻愮ず,榪涜鐩稿叧鎿嶄綔.

OK.閰辯傳灝卞彲浠ユ湁鏁堟斁緗噸澶嶆彁浜や簡.

濡備綍鍦ㄤ笉浣跨敤Struts鐨勫墠鎻愪笅鍒╃敤浠ょ墝鏈哄埗瑙e喅閲嶅鎻愪氦闂:
Struts鐨勪護鐗屾満鍒舵湁鍑犱釜瑕佺偣鍙互璁╂垜浠湪鏅氱殑JSP/Servlet涓В鍐抽噸澶嶆彁浜ら棶棰?
1銆佹彁渚涘嚑涓搷浣淭oken鐨勭浉鍏蟲柟娉?
鍏抽敭鏈変笁涓?
resetToken(HttpServletRequest request)-->閲嶇疆浠ょ墝鍊?
saveToken(HttpServletRequest request)-->淇濆瓨浠ょ墝鍊?
isTokenValid(HttpServletRequest request)-->媯嫻嬩護鐗屾槸鍚﹀悎娉?

2銆佸湪form琛ㄥ崟涓鍔犻殣钘忓煙,淇濆瓨褰撳墠浠ょ墝鍊?

3銆佸湪鎵ц鎸佷箙鎬ф暟鎹搷浣滀箣鍓嶈皟鐢ㄧ浉鍏蟲柟娉曞垽鏂綋鍓嶄護鐗屾槸鍚﹀悎娉?涔嬪悗鍦ㄨ繘琛岀浉鍏蟲搷浣?

鏂規硶鏄浉鍚岀殑,鍙槸瀹炵幇鐨勬柟寮忎笉澶竴鏍?

truts1.1 API鍏充簬鍑犱釜Token鎿嶄綔鏂規硶鐨勮鏄?

protected聽 boolean isTokenValid(javax.servlet.http.HttpServletRequest request)
聽聽聽聽聽聽聽聽聽 Return true if there is a transaction token stored in the user's current session, and the value submitted as a request parameter with this action matches it.

protected聽 boolean isTokenValid(javax.servlet.http.HttpServletRequest request, boolean reset)
聽聽聽聽聽聽聽聽聽 Return true if there is a transaction token stored in the user's current session, and the value submitted as a request parameter with this action matches it.

protected聽 void resetToken(javax.servlet.http.HttpServletRequest request)
聽聽聽聽聽聽聽聽聽 Reset the saved transaction token in the user's session.

protected聽 void saveToken(javax.servlet.http.HttpServletRequest request)
聽聽聽聽聽聽聽聽聽 Save a new transaction token in the user's current session, creating a new session if necessary.



zxf 2006-04-12 17:05 鍙戣〃璇勮
]]>
琛ㄥ崟閲嶅鎻愪氦http://www.aygfsteel.com/zxfahjz/archive/2006/04/11/40490.htmlzxfzxfTue, 11 Apr 2006 08:52:00 GMThttp://www.aygfsteel.com/zxfahjz/archive/2006/04/11/40490.htmlhttp://www.aygfsteel.com/zxfahjz/comments/40490.htmlhttp://www.aygfsteel.com/zxfahjz/archive/2006/04/11/40490.html#Feedback0http://www.aygfsteel.com/zxfahjz/comments/commentRss/40490.htmlhttp://www.aygfsteel.com/zxfahjz/services/trackbacks/40490.html銆銆
銆銆public ActionForward add(ActionMapping mapping, ActionForm form,
銆銆
銆銆HttpServletRequest request, HttpServletResponse response)
銆銆
銆銆//鍓嶉潰鐨勫鐞嗙渷鐣?br />銆銆
銆銆saveToken(request);
銆銆
銆銆return mapping.findForward("add");
銆銆
銆銆}鍦ˋction鐨刬nsert鏂規硶涓紝鎴戜滑鏍規嵁琛ㄥ崟涓殑Token鍊間笌鏈嶅姟鍣ㄧ鐨凾oken鍊兼瘮杈冿紝濡備笅鎵紺猴細
銆銆
銆銆public ActionForward insert(ActionMapping mapping, ActionForm form,
銆銆
銆銆HttpServletRequest request, HttpServletResponse response)
銆銆
銆銆if (isTokenValid(request, true)) {
銆銆
銆銆// 琛ㄥ崟涓嶆槸閲嶅鎻愪氦
銆銆
銆銆//榪欓噷鏄繚瀛樻暟鎹殑浠g爜
銆銆
銆銆} else {
銆銆
銆銆//琛ㄥ崟閲嶅鎻愪氦
銆銆
銆銆saveToken(request);
銆銆
銆銆//鍏跺畠鐨勫鐞嗕唬鐮?br />銆銆
銆銆}
銆銆
銆銆}

zxf 2006-04-11 16:52 鍙戣〃璇勮
]]>
html:messages 鏍囩鐢ㄦ硶涔嬩竴http://www.aygfsteel.com/zxfahjz/archive/2006/04/07/39878.htmlzxfzxfFri, 07 Apr 2006 09:26:00 GMThttp://www.aygfsteel.com/zxfahjz/archive/2006/04/07/39878.htmlhttp://www.aygfsteel.com/zxfahjz/comments/39878.htmlhttp://www.aygfsteel.com/zxfahjz/archive/2006/04/07/39878.html#Feedback0http://www.aygfsteel.com/zxfahjz/comments/commentRss/39878.htmlhttp://www.aygfsteel.com/zxfahjz/services/trackbacks/39878.htmlerrors.add("ExistLoginName",new ActionMessage("admin.user.jsp.existlogin",this.loginName));

<html:messages id="ExistLoginName" property="ExistLoginName" message="true">
<script language="javascript" type="text/javascript">
alert("<bean:write name="ExistLoginName"/>");
</script>
</html:messages>

zxf 2006-04-07 17:26 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 海原县| 前郭尔| 湾仔区| 平远县| 鄄城县| 蒲江县| 河北区| 文成县| 宁城县| 明溪县| 自治县| 清水县| 牡丹江市| 定日县| 繁昌县| 溧水县| 克山县| 怀仁县| 伊金霍洛旗| 宿松县| 东台市| 闽侯县| 昌图县| 曲沃县| 日土县| 大余县| 长子县| 乃东县| 乐清市| 奎屯市| 建阳市| 南开区| 胶州市| 嘉峪关市| 青阳县| 玛沁县| 射阳县| 唐河县| 宜宾县| 尼木县| 都安|