What is forward() and include() of servlets
RequestDispatcher interface?

Answer Posted / nagababu

include() we have used include method for dispatch the
request, The browser will get the output generated by
Calling Servlet and Called Servlet.

forward() we have used forward method for dispatch request,
The browser will get the output generated by Called Servlet
and Calling Servlet will be discarded.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of inter-servlet communication?

583


What is servlet and its use?

621


What do you mean by url pattern in servlet?

616


Differentiate between the print writer and servlet output stream?

554


How we can get ip address of client in servlet?

527






How do you design microservices?

612


What are advantages of servlets over cgi?

617


Explain the methods of request dispatcher in servlet?

507


What are the uses of servlet and what is servlet chaining?

553


What is a generic servlet?

513


What are the jobs performed by servlets?

574


Explain the working of service() method of a servlet.

494


What do you mean by cgi?

525


Differentiate between get and post?

675


What is cgi and what are its drawbacks?

539