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 | 4 No |
Post New Answer View All Answers
Why do we use sendredirect() method?
What are session variable in servlets?
What is the difference between context parameter and context attribute?
Whether thread can be used in servlets?
Why HttpServlet class is declared abstract?
How can the session in servlet be destroyed?
Explain the jar and war files in servlet?
Explain get and post.
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
How native code can be used in a servlet?
Which method is called when reference variable is passed in system.net?
Why do we have servlet listeners?
What is the use of java servlet api?
Which httpsession object is used to view and manipulate information about a session?
How do I use cookies to store session state on the client?