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
Explain web container.
Differentiate between the get and post method
Explain is servlet mapping?
What are the type of protocols used in httpservlet?
What is getservletcontext?
What is the difference between jsp and servlet life cycle?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What are the different methods involved in generic servlet?
What is java servlet session?
How do I use cookies to store session state on the client?
What is the capacity the doget can send to the server?
Why doesn’t a servlet include main()? How does it work?
What do you mean by annotations in servlet?
What are different ways for authentication of servlet?
What is servlet container. how it works?