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

How can I override the jspinit() method within a jsp page?

470


What is expression language injection?

494


How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?

552


How we can disable session in jsp?

506


Why is it not necessary to configure standard jsp tags in web.xml?

489






Why do we need custom tags in jsp?

478


Why do we use jsp?

487


What is the use of 'out' implicit object?

488


What is jstl used for?

504


Why do we use jstl tags?

496


How many jsp scripting elements are there and what are they?

512


How jsp is compiled?

468


Define jsp declaration?

560


What is a scriptlet?

508


Explain client-side and server-side validation.

477