A bundle of interceptors invoked on an action in the order specified in the configuration.
A bundle of interceptors invoked on an action in the order specified in the configuration. Most web applications needed to apply the same set of Interceptors over and over again. Rather than reiterate the same list of interceptors, it's possible to bundle these interceptors together using an Interceptor Stack.
The default interceptor stacks are configured in the struts-default.xml
. The interceptor stack should be applied on each action invocation, by default the defaultStack
is applied which include a rich set of interceptors needed by the most applications. But it could be customized on the project level or by the plug-ins in their own configuration files. The interceptor stack is composed by referencing other interceptors or interceptor stacks. The interceptors in the stack are invoked in the order as followed in the configuration for the interceptor stack. The interceptor stack could be referenced by the action configuration elements to define it's own interceptor stack and override the default stack.