Difference between Include, Forward and sendRedirect in
Servlet?
Answer Posted / shyam babu
include: will include the output of another resource(jsp,
servlet etc )in our current file. and response is generated
from current file
forward: will forward the current request to the forwarding
page & response is generated from forwarding opage
sendRediect: will redirect to the page specified in the
sendRedirect method 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 ? | 8 Yes | 7 No |
Post New Answer View All Answers
What are common tasks performed by Servlet Container?
Can we use the constructor, instead of init(), to initialize servlet?
If servlet receives multiple requests, how many objects will it create?
Difference between httpservlet and generic servlets?
What does the term localization refer to?
What is the default http method in the servlet?
Which application server is best for java?
What is the main purpose of java servlets?
Explain the different ways for servlet authentication?
How can we create deadlock situation in servlet?
What is httpservlet class?
Differentiate between the print writer and servlet output stream?
What are the annotations used in servlet 3?
Which event is fired at the time of session creation and destroy?
What are the objects involved when a servlet receives a call from client?