The RequestProcessor Class is the actual place where the request processing takes place in a Struts controller environment.
When the request object first reaches the actionservlet class then it invokes the process method of the underlying RequestProcessor Class.
This process method then looks into the struts-config.xml file and tries to locate the name of the action that has come with the request.Once it identifies the action in the xml file it continues the rest of the steps needed for request processing.
processor has most of the following responsibilities:
- Determine path,
- Handle Locale,
- Process content and encoding type,
- Process cache headers
- Pre Processing hook
- Pre-processing hook,
- Determine mapping,
- Determine roles,
- Process and validate actionForm,
- Return a response
It is one instance per application module; it invokes proper Action instance
Of course processes all requests for a module.
No comments:
Post a Comment