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
How can you use a servlet to generate a plain text instead of html?
What is ServletConfig object?
Explain the role of dispatcherservlet and contextloaderlistener.
Differentiate between get and post?
What is meant by servlet? What are the parameters of the service method?
What is servlet in simple terms?
Elucidate servlet attributes and its scope?
What are common tasks performed by Servlet Container?
Explain web application directory arrangement?
what is multiple server?
What are the ways to handle multi-threading in servlets?
What is servlet looping or chaining?
How is the get () method different from the post() method?
What is the need of session tracking in web application?
What is the use of servletconfig interface?