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
What do you mean by httpservlet and how it is different from the genericservlet?
What is servlet interface?
What is the life-cycle of servlets?
What is setattribute in servlet?
What are the differences between the servletconfig interface and the servletcontext interface?
Explain the difference between servlet and cgi?
If some new data has entered the database, explain how can a servlet refresh automatically?
What is context in servlet?
What does the term localization refer to?
What are all the ways for session tracking?
Why doesn’t a servlet include main()?
List the Different types of servlet?
What is the inter-servlet communication?
Which http method is said to be non-idempotent and idempotent?
What is cookie in servlet?