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

Answer Posted / mahmood alam siddiqui

Forwrd :: when we invoke forward the request is sent to the
another resource on the server without the client being
inform that difference resource is going to process that
request.

SendRedirect :: when we invoke sendRedirect, It causes the
web container to return to the brouser that means new URL
should be requested.

SendRedirecr takes extra round trip
Forward is fater than sendRedirect

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

679


How can information from one JSP be passed to another JSP?

748


What are the two types of comments supported by jsp?

666


How can I implement a thread-safe jsp page?

678


How do I perform browser redirection from a jsp page?

659






What is scriptlet, expression and declaration in jsp?

648


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

662


What is a jsp directive?

643


What does .com stand for?

632


How can I use jsp in the mvc model?

676


How do you delete a cookie within a jsp?

798


What is session setattribute?

632


How are custom tags in jsp created?

673


How can we disable el?

675


What is the standard action?

755