1.

How Interceptor Works In Struts 2?

Answer»
  • ACTUAL action will be executed using the interceptor by invocation.invoke() call. So you can do some pre-processing and some post-processing based on your requirement.
  • The framework itself starts the process by making the first call to the ActionInvocation object's invoke(). Each time invoke() is called, ActionInvocation CONSULTS its state and EXECUTES whichever interceptor comes next. When all of the CONFIGURED interceptors have been invoked, the invoke() method will CAUSE the action itself to be executed.



Discussion

No Comment Found