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 do cookies mean?
What is session management in jsp?
How can multiple submits due to refresh button clicks be prevented?
What is the need for jsp?
How to send data from jsp to jsp?
Give an example where you need jsp custom tag?
How jsp is compiled?
How are custom tags in jsp created?
What is the use of pagecontext in jsp?
Give the use of exception object.
What is scripting elements in jsp?
What is el?
What are the implicit, internal el jsp objects and their differences from jsp objects?
How do you pass control from one jsp page to another?
What are the jsp lifecycle phases?