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 is the directory structure of web application?
What is servlet in web technology?
What is the difference between CGI and Servlet?
Does servlet have main method?
Write a program to show the functionality of doget and dopost method?
What is servlet and its types?
Describe the phases of servlet lifecycle?
Describe in brief RequestDespatcher?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What are some advantages of storing session state in cookies?
What is the major difference between servlet and applet?
When a servlet accepts a call from a client, it receives two objects. What are they?
What do you mean by a filter and how does it work?
How can a servlet be used to generate plain text instead of html?
What if we pass negative value in load-on-startup?