What is Request Dispatcher and What is reuest Processor??

Answers were Sorted based on User's Feedback



What is Request Dispatcher and What is reuest Processor??..

Answer / laxmi

RequestDispatcher(rd) is an interface .Servlet container
creates rd object that receives requests from the client and
sends them to any resource (such as a servlet, HTML file, or
JSP file) on the server.
Request Processor contains the processing logic that the
ActionServlet performs as it receives each servlet request
from the container.

Is This Answer Correct ?    3 Yes 0 No

What is Request Dispatcher and What is reuest Processor??..

Answer / nagendra

RequestDispatcher is an interface
which is used to forward our request to java
enabled Resources like servlet,jsp.. within the server.
it has one limitation i.e we cant forward req to
outside server... that was achieved by using sendreDirect
mechanism ..which forwards request not only within the
server but also outside servers.

RequestProcessor is an predefined class given by structs
framework..
and it is helper class to Structs controller
component i.e ActionServlet by using the method process()..
eventhough it is predefined we can create our
own RequestProcessor class

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Struts Interview Questions

What do you mean by ognl?

0 Answers  


What is the flow of requests in struts based applications?

0 Answers  


What is the use of forwardaction?

0 Answers  


How duplicate form submission can be controlled in struts?

0 Answers  


How struts2 supports internationalization?

0 Answers  






What is Struts Frame Work Architecture(With Diagram) ?

2 Answers   CMC, Wipro,


Which design pattern the interceptors in struts2 is based on?

0 Answers  


What happens when Two users requests for same action class? How the threads are controlled?

4 Answers  


Can we write our own ActionServlet for front controller of Struts Applications?

2 Answers   NIIT,


What is dispatch action class?

0 Answers  


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

0 Answers  


Can explain about the validations and in your project where did u used the validations?

4 Answers   NIIT,


Categories