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
Can servlet have a constructor ?
What is the type of method for sending request from http server?
What is servlet? Explain
The code in a finally clause will never fail to execute, right?
What is the difference between using getSession(true) and getSession(false) methods?
Tell us something about servletcontext interface.
What is the life-cycle of servlets?
What is the difference between a generic servlet and http servlet?
Which http method is said to be non-idempotent and idempotent?
Write a hello world program using servlets.
Can you call a jsp from the servlet?
Difference between GET and POST?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is the difference between jsp and servlet life cycle?
How do we call one servlet from another servlet?