Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The framework provides the ability to chain multiple actions into a defined sequence or workflow. This feature works by applying a Chain Result to a given Action, and intercepting its target Action's invocation with a ChainingInterceptor Chaining Interceptor.

Tip
titleDon't Try This at Home

As a rule, Action Chaining is not recommended. First explore other options, such as the Redirect After Post technique.

...

If you need to copy the properties from your previous Actions in the chain to the current action, you should apply the ChainingInterceptor Chaining Interceptor. The Interceptor will copy the original parameters from the request, and the ValueStack is passed in to the target Action. The source Action is remembered by the ValueStack, allowing the target Action to access the properties of the preceding Action(s) using the ValueStack, and also makes these properties available to the final result of the chain, such as the JSP or Velocity page.

...