what is difference between redirect and forward method?

Answer Posted / sayed2010

Forward:
1-It takes place internally by the servlet(Server side
operation.
2-The browser is completely unaware that it has taken place.
3-The original request remains unchanged.
4-A browser reload of the resulting page will simply repeat
the original url and the original request.

Redirect:
1-Is a two step process.
2- 1st step-> is that the browser is instructed to fetch a
new url differs from the original url.
3-It require two browser requests.
Object placed in the first request will not be available to
the second request.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of creating custom tags?

524


Differentiate between pagecontext.include and jsp:include?

526


How does error handling occur with jstl?

510


What jsp lifecycle methods can I override?

571


How many jsp scripting elements are there and what are they?

514






What is jsp translation phase?

478


How does response sendredirect work?

500


Can we use jsp implicit objects in a method defined in jsp declaration?

508


Explain the difference between jspwriter and servlet printwriter in jsp?

504


Is jsp page extensible true false?

492


What are the components of jsp?

504


What is the purpose of ?

504


Can we use the exception implicit object in any jsp page?

479


Is jsp server side scripting language?

569


What is the advantage of using getProperty action, as compared to the accessor method?

2758