What is forward() and include() of servlets
RequestDispatcher interface?
Answer Posted / ravikiran
forward will make the flow into a different page,where as
include mechanism will include the page to the current
response and continues the flow.
Note:the forward and include should be called before the
response is committed for example before the call to flush()
or flushBuffer() or the write method in the response stream
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the differences between servlet context vs servlet config?
What is called Session Tracking?
What are life cycle methods of a servlet?
Why do we have servlet filters?
What is the difference in between the httpservlet and generic servlet?
Explain servlet events?
Why is servlet used?
What are the different ways we can maintain state between requests?
Why is init() method is used in servlets?
What are the two important api's in for servlets?
What are the disadvantages of storing session state in cookies?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is the difference between the include() and forward() methods?
What is servlet and its use?
What are the advantages of Servlet over CGI?