Knight of the round table

wansong

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 阅读(142) 评论(0)  编辑  收藏 所属分类: Struts


只有注册用户登录后才能发表评论。


网站导航: