针对不同包之间的action跳转,怎么配置?

例如一下的例子:两个包,如何跳转
<struts>
     
    <constant name="struts.enable.DynamicMethodInvocation" value="false" />
    <constant name="struts.devMode" value="false" />
    <constant name="struts.i18n.encoding" value="UTF-8"></constant>
 
    <package name="user" namespace="/user" extends="struts-default">
        <action name="userlogin" class="cn.jhost.alibaba.user.action.UserAction">
            <result name="SUCCESS" type="">renewToList.action</result>
            <result name="ERR">/err.html</result>
        </action>
    </package>
 
    <package name="renew" namespace="/renew" extends="struts-default">
        <action name="renewToList" class="cn.jhost.alibaba.renew.action.RenewAction">
            <result>/jsp/list.jsp</result>
        </action>
    </package>
     
</struts>

配置如下:
<result name="SUCCESS" type="redirectAction"><param name="namespace">/renew</param> 

           <param name="actionName">renewToList</param>

</result>

 

或者这样

    1. <result type="chain">  
    2.     <param name="actionName">dashboard</param>  
    3.     <param name="namespace">/secure</param>  
    4. </result

 

posted @ 2016-01-17 18:01  dy9776  阅读(438)  评论(0编辑  收藏  举报