difference between forward and sendredirect
Answer Posted / neeraj_passion2001
FORWARD-->
1. THE REQUEST AND RESPONSE OBJECT REMAIN SAME.
2. CONTROL DIRECTLY GOES TO REQUESTED PAGE AT THE POINT
WHERE FORWARD IS CALLED.
3. REQUEST DISPATCHER IS NEEDED.
SEND REDIRECT:--->
1.NEW REQUEST AND RESPONSE IS GENERATED IN CASE THIS CASE.
2.IN THIS CASE FIRST CONTROL GOES TO CLIENT(BROWSER) AND
THEN TO REQUESTED PAGE.
3.JUST RESPONSE OBJECT IS NEEDED.
| Is This Answer Correct ? | 33 Yes | 2 No |
Post New Answer View All Answers
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is the difference between the http servlet and generic servlet?
How to get the IP address of client in servlet?
What are the different session tracking techniques?
What are the jobs performed by servlets?
why we should override only no-agrs init() method.
Explain servlet.
Can we get PrintWriter and ServletOutputStream both in a servlet?
What is servlet in tomcat?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
Is servlet a framework?
Can we use the constructor, instead of init(), to initialize servlet?
What are the objects involved when a servlet receives a call from client?
What are the type of protocols used in httpservlet?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file