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 is servlet name in web xml?
Which is the methods of generated servlet?
What are the mechanisms used by a servlet container for maintaining session information?
How can you use a servlet to generate a plain text instead of html?
Why do we use sendredirect() method?
How do you run a servlet?
Why do we need a constructor in a servlet if we use the init method?
How will two or three servlets interact or communicate with each other?
Is that servlet is pure java object or not?
What are the important functions of filters?
Why is Servlet so popular?
What do you mean by cgi in servlet?
Why are servlets used?
What is Request Dispatcher?
What is the major difference between context parameter and context attribute?