Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Result Types > Chain Result |
This result invokes an entire other action, complete with it's own interceptor stack and result.
<package name="public" extends="webwork-default"> <!-- Chain creatAccount to login, using the default parameter --> <action name="createAccount" class="..."> <result type="chain">login</result> </action> <action name="login" class="..."> <!-- Chain to another namespace --> <result type="chain"> <param name="actionName">dashboard</param> <param name="namespace">/secure</param> </result> </action> </package> <package name="secure" extends="webwork-default" namespace="/secure"> <action name="dashboard" class="..."> <result>dashboard.jsp</result> </action> </package>