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 are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

0 Answers  


What is MVC Architecture?

21 Answers   HCL, Hexaware, Infosys, Infrascape, Tech Mahindra,


What is role of actionservlet?

0 Answers  


Explain the complete struts validator framework.

0 Answers  


In how many ways duplicate form submission can occurs?

0 Answers  






In which method of action class the business logic is executed?

0 Answers  


what is purpose cvs and vss in eclipse?

2 Answers  


What are interceptors in struts 2?

0 Answers  


Which servlet does the struts framework use?

0 Answers  


What do you mean by actionmapping?

0 Answers  


What is the purpose of plug-in tag in struct-config.xml?

0 Answers  


What is the struts in java?

0 Answers  


Categories