Dashboard > WebWork > ... > Result Types > Chain Result
  WebWork Log In View a printable version of the current page.  
  Chain Result
Added by Casey Moyaert, last edited by Patrick Lightbody on Dec 11, 2005  (view change)
Labels: 
(None)

This result invokes an entire other action, complete with it's own interceptor stack and result.

Parameters

  • actionName (default) - the name of the action that will be chained to
  • namespace - used to determine which namespace the Action is in that we're chaining. If namespace is null, this defaults to the current namespace
  • method - used to specify another method on target action to be invoked. If null, this defaults to execute method

Examples

<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>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators