针对不同包之间的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

 

你可能感兴趣的:(针对不同包之间的action跳转,怎么配置?)