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 http servlet?
What is cgi?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is load-on-startup in servlet?
Which java application server is the best?
How do we share data using 'getservletcontext ()?
What are the types of servlets? Explain
What is http servlet? Explain with the help of an example.
How can a servlet be used to generate plain text instead of html?
Why is Servlet so popular?
Whats the advantages using servlets over using CGI?
What exception should be thrown when servlet is not properly initialized?
What is ServletContext object?
Explain the architechure of a servlet?
What if we pass negative value in load-on-startup?