Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{snippet:id=description|lang=none|javadoc=true|url=com.opensymphony.xwork.ActionChainResult}

Parameters

Wiki Markup
{snippet:id=params|lang=none|javadoc=true|url=com.opensymphony.xwork.ActionChainResult}

Examples

Wiki Markup
{snippet:id=example|lang=xml|javadoc=true|url=com.opensymphony.xwork.ActionChainResult}

Action Chaining

A special kind of view that invokes GenericDispatch (using the previously existing ActionContext) and executes another action. This is useful if you need to execute one action immediately after another.

Parameters

Required

Description

actionName

yes

the name of the action that will be chained to

namespace

no

sets the namespace of the Action that we're chaining to. If namespace is null, this defaults to the current namespace.

...


<result name="success" type="chain">
    <param name="actionName">bar</param>
    <param name="namespace">/foo</param>
</result>

invokes this

Code Block
xmlxml

<action name="bar" class="myPackage.barAction">
    ...
</action>