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 are the types of protocols supported by httpservlet ?
How printwriter is different from servletoutputstream?
What is the use of httpservletrequestwrapper?
What is the difference between encodeRedirectUrl and encodeURL?
What are the different methods of session management in servlets?
What is meant by servlet? What are the parameters of the service method?
What are the important functions of filters?
Can you use javascript in servlets?
Difference between doget and dopost?
What do you mean by chaining in servlet?
What are the steps that are required to handle the multi-threading?
Describe servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is the functionality of actionservlet and requestprocessor?
What is the purpose of inter-servlet communication?