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


Please Help Members By Posting Answers For Below Questions

what is the extended star schema

2313


What is declaration statement?

517


How is jsp better than servlet technology?

552


What is el?

510


What are jsp and servlets?

491






What is a scriptlet in jsp and what is its syntax?

493


What are the jsp standard actions?

533


What is jsp and servlets?

503


Mention the advantages of jsp over pure servlets?

506


What are the different types of directives available in jsp?

522


What are the implicit el objects in jsp?

546


how can i add properties in dynamic text fields using .js file?

1746


Which jsp methods can be overridden?

526


Explain the action?

595


What is full form of jsp?

507