What is the difference between RequestProcessor and
RequestDispatcher?

Answer Posted / vikas

RequestProcessor:
Is a controller in struts.It recieves the request from the
client and makes decision where to send the request for
further processing based on the
servlet-config.xml

RequestDispatcher:
defines an object that accepts the request from the browser
and send it to any resource (such as servlet, JSP or HTML)
on the server.

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is form bean in struts?

520


What is the purpose of @before?

561


What are the core classes of struts framework? Explain

533


Are struts still used?

520


What is struts2 framework?

519






What is the use of web xml in struts2?

527


What are the some useful annotations introduced in struts2?

550


How do I install struts?

568


What are the benefits of the struts system?

579


What are the differences between http direct and http indirect?

477


How does struts2 token work?

531


how to connect from struts to database through hibernet and where u can modify the class

2125


How can we integrate log4j in Struts2 application?

566


How is declarative handling of exceptions done in struts ?

482


How are interceptors and servlet filters different?

495