What is the use of RequestDispatcher in servlet?

Answer Posted / gani kumar

In creating the web componets we find a requirement to reuse the components in different combinations avoiding the code duplication and have a proper reponsibility divison.
To meet this requirement in servlet envirnoment that is support a servlet acess another web resource like another servlet in the application,java servlet intrduces request dispatcher

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servletconfig?

788


How would you create deadlock on your servlet?

874


What is the life-cycle of servlets?

895


Is java servlet still used?

811


Does servlet have main method?

945


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

807


What is dispatcher servlet?

839


What is a java servlet?

809


How to commuincate between an applet and a servlet?

818


How can we invoke another servlet in a different application?

961


How do I know if java is running on linux?

841


What is the structure of the http response

958


How many servlet objects are created?

815


Which method is called when reference variable is passed in system.net?

2108


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

806