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 does validation interceptor?

639


in struts how to use hibernate with struts>

1915


What is apache struts used for?

571


What is life cycle of an interceptor?

636


Name some useful annotations introduced in Struts2?

613






Can I have html form property without associated getter and setter formbean methods?

672


What are the components of struts?

637


What is pojo in struts2?

659


Why actionservlet is singleton in struts?

670


What do you mean by a custom tag?

627


What are the components of struts framework?

670


Does Struts2 action and interceptors are thread safe?

673


What's the purpose of execute method of action class?

608


What do struts do?

610


Can you explain custom tag?

667