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


Please Help Members By Posting Answers For Below Questions

How to rectify errors in java servlet while compilation?

705


How do cookies work in servlets?

791


How do servlets work?

762


How to get the path of servlet in the server?

725


Why is http protocol called as a stateless protocol?

733


What is the difference between CGI and Servlet?

781


If my browser does not support cookie, and my server sends a cookie instance what will happen?

832


What do you mean by web applications? Explain web application directory arrangement?

728


What are the disadvantages of storing session state in cookies?

885


What is the difference between portlet and servlet?

705


How servlet is created?

778


What is cookie in servlet?

775


How can we include static files in the jsp page?

800


What do you mean by session tracking and also explain its techniques?

675


How can I send user authentication information while making URL Connection?

734