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
What are the uses of servlet and what is servlet chaining?
What are important features of Servlet 3?
What is the procedure of invoking different servlet in a different application?
How to get the IP address of client in servlet?
Which is the methods of generated servlet?
What is the difference between sendredirect() and forward() in a servlet?
Why is a constructor needed in a servlet even if we use the init method?
What are session variable in servlets?
What is called servlet mapping?
How can we implement a jsp page?
What exactly is a servlet?
What are the life cycle methods of a servlet?
Explain how does JSP handle run-time exceptions?
What does the term localization refer to?
What do you mean by session tracking and also explain its techniques?