例如一下的例子:两个包,如何跳转
<
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>
或者这样
-
- <result type="chain">
- <param name="actionName">dashboard</param>
- <param name="namespace">/secure</param>
- </result>