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

Explain how you understand the action tag and jsp action elements.

713


Why should we not configure jsp standard tags in web.xml?

707


hpcl information systems officer 2008 Question Papers or any last previous questions papers thanks in advance shyamprasad71@gmail.com shyamprasad71@gmail.com

1959


How can I use the results of my method? ea: <%! method (int x) { stuff return y; } %> <% out.println(y); %> how can I make this work? "y" is a variable made during the method.

1824


How can I prevent the output of my jsp or servlet pages from being cached by the browser?

767


How can automatic creation of session be prevented in a jsp page?

727


Can we override jspinit method?

656


Which tags are used for bean development?

662


Why jsp is faster than servlet?

665


What is difference between java and jsp?

667


What are the events in jsp page?

661


How does jsp engines instantiate tag handler classes instances?

631


What are the different scope values for the jsp objects?

692


What is the jspinit() method?

679


What is difference between sendredirect and forward?

698