Difference between Include, Forward and sendRedirect in
Servlet?
Answer Posted / franklin
Include:It helps us to include the contents of some other
file in a JSP
jsp:include-it includes the contents during the run time
forward:will send the same request to the new server.Client
will not know that he s redirected to the new page as
forwarding will take place at the server end.
sendRedirect:will not send the same request to the
server.Client will know that he s redirected to the other
site.
| Is This Answer Correct ? | 27 Yes | 17 No |
Post New Answer View All Answers
What is servlet attributes and their scope?
What is servlet interface?
Write a simple servlet program to print the contents of html.
What is meant by Servlet? What are the parameters of service method?
What are all the ways for session tracking?
What is MIME Type?
Why is http protocol called as a stateless protocol?
Why do you use session tracking in httpservlet?
What is webservlet?
What is the use of servletconfig interface?
Why do we have servlet filters?
What do you mean by a filter and how does it work?
How can an existing session be invalidated?
Why is Servlet so popular?
How can the session in servlet be destroyed?