What is the difference between <jsp:forward> and
sendRedirect?
Answer Posted / prasanth setty
When you want to preserve the current request/response
objects and transfer them to another resource WITHIN the
context, you must use <jsp:forword>
If you want to dispatch to resources OUTSIDE the context,
then you must use sendRedirect. In this case you won't be
sending the original request/response objects, but you will
be sending a header asking to the browser to issue a
request to the new URL.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a jsp container?
What is a output comment?
Why are the request.getrequestdispatcher() and context.getrequestdispatcher() used?
Can constructor be used instead of init(), to initialize servlet?
How clear chache and buffer of opera browser.
What is jsp taglib?
What do you mean by jsp?
How many jsp scripting elements are there and what are they?
Why is it not necessary to configure standard jsp tags in web.xml?
Why do we need custom tags?
How do I run a jsp file?
what are the tools used in your project , How to ask the answer this question
How do I create a dynamic web project?
How can we extend jsp technology?
What is jsp and why is it needed?