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
Explain the difference between get and post method in servlet?
Explain the steps involved in placing a servlet within a package?
What are the differences between servlet context vs servlet config?
What's the difference between servlets and applets?
What is the difference between servlet and filter?
List out the difference between ServletConfig and ServletContext?
How can the session in servlet be destroyed?
What is session?
Explain how does JSP handle run-time exceptions?
Write a program to show the functionality of doget and dopost method?
How do I use cookies to store session state on the client?
What's the use of servletcontext?
Can we override destroy method in servlet?
Can we fetch the attributes related to a servlet on a different servlet?
How to make sure a servlet is loaded at the application startup?