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
When jsessionid is created?
What are the difference between session and cookies in servlet? Explain
What are the different methods involved in generic servlet?
What are the kinds of http requests?
How can the session in servlet be destroyed?
Should I override the service() method?
What is servlet and its life cycle?
Explain the features are in servlet 3?
How can the session in servlet can be destroyed?
What do you mean by cgi in servlet?
What is Request Dispatcher?
What are its drawbacks of cgi?
Explain the lifecycle of a servlet?
What is servlet attributes and their scope?
What do you mean by default initialization in java servlet?