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
Difference between doget and dopost?
How can you run a servlet program?
What is load-on-startup in servlet?
What is session?
What do you mean by interservlet communication?
How to notify an object in session when session is invalidated or timed-out?
How to get the server information in a servlet?
Is servlet thread safe?
Is servlet a server side scripting language?
What’s the difference between forward() and sendredirect() methods?
Explain the jar and war files in servlet?
What is the directory structure of a war file?
How is the get () method different from the post() method?
Explain web container.
Write all the phases defined in servlet life cycle?