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
Is there a way I can set the inactivity lease period on a per-session basis?
What is response sendredirect?
How can we use beans in jsp?
Explain JSP Output comments?
What is jsp standard tag library, provide some example usage?
Where do I create jsp in eclipse?
What do you know about jsp expression language (jsp expression language – el)?
What are the implicit el objects in jsp?
What are the life-cycle methods for a jsp?
Explain lifecycle methods.
How do I use sendredirect?
What is auto-flush attribute?
What are directives? What are the different types of directives available in jsp?
Explain client and server side validation?
What is the use of jsp and servlet?