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 difference between server and servlet?
What is a servlet context?
What is the difference between a generic servlet and http servlet?
What do you mean by servlet?
Which event is fired at the time of session creation and destroy?
What are the exceptions thrown by servlets? Why?
What are the different types of servlets?
What is the life-cycle of servlets?
What is the difference between CGI and Servlet?
Why session tracking is needed?
When a servlet accepts a call from a client, it receives two objects. What are they?
Explain the difference between generic servlet and http servlet?
How many objects of a servlet is created?
What is servlet attributes and their scope?
Explain get and post.