Difference between Include, Forward and sendRedirect in
Servlet?
Answer Posted / abilash
include: will include another file in our current file
forward: will forward the current request to the forwarding page
sendRediect: will call the next page but it won't send the
same request to the new page but forward will send the same
request to the new page
| Is This Answer Correct ? | 96 Yes | 13 No |
Post New Answer View All Answers
Whether we can get deadlock situation in servlets?
Write a simple servlet program to print the contents of html.
How to get the server information in a servlet?
Describe the phases of servlet lifecycle?
How do we share data using 'getservletcontext ()?
Explain url encoding in servlet?
What are the new features added to servlet 2.5?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
Why don't we write a constructor in a servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
Define the life cycle of a servlets.
What is the difference between jsp and servlet life cycle?
What is the default http method in the servlet?
What is the use of httpservletrequestwrapper?
How to handle exceptions thrown by application with another servlet?