What is the difference between <jsp:forward> and
sendRedirect?

Answer Posted / manas banerjee

<jsp:forward>--a request object containing to the client
request is send to the destination page which may be
servlet/jsphtml page.
in case of sendRedirect http sends a temporary response to
the browser and browser creates a new request and it sends
to the targeted page.it destroys the session object

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I stop jsp execution while in the midst of processing a request?

563


Can we use javascript in jsp?

497


How to configure init parameters for jsp?

487


What is server side programming language?

505


What is the difference between jsp and thymeleaf?

515






What are jsp and servlets?

491


Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?

518


Where is jsp used?

514


What is the purpose of creating custom tags?

532


What is difference between include directive and jsp:include action?

497


Is jsp static or dynamic?

498


Why are jsp pages the preferred api for creating a web-based client program?

547


What are stored procedures? How is it useful?

514


What is session scope?

511


Define JSP Scriptlet.

569