Struts

Concept of Struts2.0 Interceptor
adplus-dvertising
Previous Home Next

Introduction:

The Struts2 framework provide a mechanism of controlling request data before invoking action class and after invoking action, they give service between the controller and action . Interceptors performs tasks such as Logging, Validation, File Upload, Double-submit guard etc.

Class/Library File Descriptions:

The request processing lifecycle of Struts2 framework

  1. User send the request on the server
  2. Server invoke the FilterDispatcher class.
  3. All interceptor will be fired . Interceptors performs tasks such as
  4. Logging, Validation, File Upload, Double-submit guard etc.
  5. Action is executed and the Result is generated by Action.
  6. The output of Action is rendered in the view (JSP, Velocity, etc) and the result is returned to the user.
Previous Home Next