In apache struts 2 framework there are two categories of the interceptors default and custom. The default interceptors need not to be create its provided by the struts 2 , we can create the custom interceptor by implementing the Interceptor interface in a class and overriding its three life cycle method as the following given in the given example .
For creating the custom interceptor, Interceptor interface must be implemented. It has three methods: