<interceptor name="workflow" class="com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor"/>
This interceptor implements the workflow that was found in ActionSupport in WebWork 1.x. The following workflow steps are applied before the rest of the Interceptors and the Action are executed, and may short-circuit their execution:
- If the Action implements com.opensymphony.xwork.Validateable, the validate() method is called on it, to allow the Action to execute any validation logic coded into it.
- If the Action implements com.opensymphony.xwork.ValidationAware the hasErrors() method is called to check if the Action has any registered error messages (either Action-level or field-level). If the ValidationAware Action has any errors, Action.INPUT ("input") is returned without executing the rest of the Interceptors or the Action.
- If the execution did not short-circuit in the step above, the rest of the Interceptors and the Action are executed by calling invocation.invoke()
|