what is request processor class ?

Answer Posted / teja

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:

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

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Core classes of Struts Framework?

793


What is the purpose of @typeconversion annotation annotation?

766


What do you mean by struts.dev mode?

718


Explain how to work with error tags?

809


Is struts compatible with other java technologies?

718


What is the purpose of constant tag in struts.xml?

720


What is the use of forwardaction?

739


What is the purpose of @action annotation?

795


What is the struts in java?

709


In how many ways duplicate form submission can occurs?

781


Provide some important Struts2 constants that you have used?

788


What are the steps of struts installation?

790


What are action errors and error and what are the consequences they impose?

786


How we can install struts?

737


How interceptor works in struts 2?

811