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
What is scripting elements in jsp?
Mention the scope values for
What is the purpose of creating custom tags?
What is the jspdestroy() method?
What is out in jsp?
What is difference between html and jsp?
What is jsp standard tag library, provide some example usage?
How can I declare methods within my jsp page?
What do cookies mean?
How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?
Why are jsp pages the preferred api for creating a web-based client program?
What do you mean by custom tag in jsp?
What is jsp taglib?
Why don’t we need to configure jsp standard tags in web.xml?
Can a jsp page process html form data?