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
Why is init() method is used in servlets?
How do you define a servlet?
What is java servlet session?
When jsessionid is created?
What is servletconfig?
What is url encoding and url decoding
Whether we can get deadlock situation in servlets?
What are the differences between the servletconfig interface and the servletcontext interface?
Can servlet have a constructor ?
Differentiate between the web server and application server?
Describe servlet?
What is the difference between the http servlet and generic servlet?
What is the life-cycle of servlets?
What is servlet container. how it works?
What is servlet interface?