What is the request processor in struts? how it works?

Questions by sadashivarao   answers by sadashivarao

Showing Answers 1 - 2 of 2 Answers

poulomi

  • May 17th, 2006
 

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(for details on this pls go thru Wrox).

Poulomi

S Prithviraj

  • Jul 19th, 2006
 

IN addition to whatever said in comment one, in Jakarta Struts request processor has most of the following responsibilities: 1. Determine path, 2. Handle Locale, 3. Process content and encoding type, 4.Process cache headers 5. Pre Processing hook 6.Pre-processing hook, 7.Determine mapping, 8.Determine roles, 9.Process and validate actionForm, 10.Return a response

It is one instance per application module; it invokes proper Action instance

Of course processes all requests for a module.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions