Struts tips
http://book.csdn.net/bookfiles/479/10047916715.shtml Struts 2的基本配置< action name ="Login" class ="tutorial.Login" >
< result type ="chain" > AuthorizatedAccess </ result >
</ action >
< action name ="AuthorizatedAccess" class ="tutorial.AuthorizatedAccess" >
< interceptor-ref name ="auth" />
< result name ="login" > /Login.jsp </ result >
< result name ="success" > /ShowRole.jsp </ result >
</ action >
In struts2-showcase project:
<default-action-ref name="showcase" />
<action name="showcase">
<result>showcase.jsp</result>
</action>
In struts-default.xml of struts-core:
<default-interceptor-ref name="defaultStack"/>
<default-class-ref class="com.opensymphony.xwork2.ActionSupport" />
posted on 2010-07-23 10:26 w@ns0ng 閱讀(146) 評論(0) 編輯 收藏 所屬分類: Struts