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

What is a tag file?

555


What are the different scope values for the tag?

610


How can we avoid direct access of jsp pages from client browser?

706


Explain jsp action elements or action tags?

581


What are directives? What are the different types of directives available in jsp?

560






How do I create a dynamic web project?

553


What is dynamic web project?

587


What are directives in jsp?

598


What are the two types of comments supported by jsp?

590


What is jsp and asp?

606


What is application in jsp?

544


How can I set a cookie and delete a cookie from within a jsp page?

606


How we can configure init params in jsp?

627


What is a expression?

608


Can we use jstl in html?

521