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 the purpose of creating custom tags?
Differentiate between pagecontext.include and jsp:include?
How does error handling occur with jstl?
What jsp lifecycle methods can I override?
How many jsp scripting elements are there and what are they?
What is jsp translation phase?
How does response sendredirect work?
Can we use jsp implicit objects in a method defined in jsp declaration?
Explain the difference between jspwriter and servlet printwriter in jsp?
Is jsp page extensible true false?
What are the components of jsp?
What is the purpose of
Can we use the exception implicit object in any jsp page?
Is jsp server side scripting language?
What is the advantage of using getProperty action, as compared to the accessor method?