In this tutorial you will see different ways to create you own interceptor stack and associate it with the action class. Struts 2 comes with a set of pre defined interceptors and interceptor stacks which you can use out of the box. The struts-default.xml file contains the struts-default package which defines all the interceptors and the interceptor stacks. You can use the stack that meets your need. When you extend your package from the struts-default package by default the defaultStack will be used for all the actions in your package. This is configured in the struts-default.xml file in the following way. 1.<default-interceptor-ref name="defaultStack"/> |
