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 content type in jsp?
How to disable session in jsp?
What are the jsp tags?
What are jsp and servlets?
What is the difference between jsp and thymeleaf?
How we can use javascript with jsp pages?
What is the include directive?
How can we stop errors on display in a jsp page?
What is el in jsp?
What program opens a jsp file?
What is jsp api?
What is a jsp and what is it used for?
Can we define a class inside a jsp page?
How can you include the results of another page?
What are the ways to insert java code into jsp page?