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

Answer Posted / suresh

forward() is used to just forward the request and response
object...

include() is used to pass the values and request and
response object,one servlet to another servlet

Is This Answer Correct ?    5 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is a servlet implemented in code?

753


What do you understand by mime type?

773


What is SingleThreadModel interface?

847


What are the different types of servlets?

694


Difference between java beans & servlets?

754


What is ServletConfig object?

801


What is url encoding and url decoding

806


What is getservletcontext?

715


Explain servlet events?

729


What are session variable in servlets?

753


What is java servlet session?

697


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

818


Tell the new features added in servletrequest interface i.e. Servlet 2.4

785


How the servlet is loaded?

764


Can we get PrintWriter and ServletOutputStream both in a servlet?

860