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
How to retrieve warnings?
What is the use of jstl?
What are the life-cycle methods for a jsp?
What are the features of jsp?
How to forward a request to another source?
How does a jsp engine work?
What is server side programming language?
What do cookies mean?
Explain the
Is there a way to reference the "this" variable within a jsp page?
What is c tag in jsp?
What is an api with example?
What is pagecontext?
How is jsp include directive different from jsp include action. ?
What is jsp taglib?