1.

What Are Interceptors In Struts 2?

Answer»

Interceptors are conceptually the same as SERVLET filters or the JDKs Proxy class. Interceptors ALLOW for crosscutting functionality to be implemented separately from the action as WELL as the framework.

You can achieve the FOLLOWING using interceptors :

  • Providing preprocessing logic before the action is called.
  • Providing postprocessing logic after the action is called.
  • CATCHING exceptions so that alternate processing can be performed.

Interceptors are conceptually the same as servlet filters or the JDKs Proxy class. Interceptors allow for crosscutting functionality to be implemented separately from the action as well as the framework.

You can achieve the following using interceptors :



Discussion

No Comment Found