1.

What Are The Benefits Of Interceptors In Struts2?

Answer»

Some of the benefits of interceptors are: 

  • INTERCEPTOR plays a crucial ROLE in achieving high level of separation of concerns.
  • Struts2 interceptors are configurable, we can configure it for any action we WANT.
  • We can create our own custom interceptors to perform some COMMON tasks such as request params logging, authentication etc. This helps us in taking care of common tasks at a single LOCATION, achieving low maintenance cost.
  • We can create interceptors stack to use with different actions.

Some of the benefits of interceptors are: 



Discussion

No Comment Found