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

What is the standard action?

496


What is pagecontext?

525


Which tag should be used to pass information from jsp to include jsp?

524


What is the use of jstl?

486


How to pass information from jsp to included jsp?

525






What is in jsp?

626


How we can configure init params in jsp?

543


why ,what, when, where,how the extended star schema is used.

1635


Why do we use expression language in jsp?

471


What is page scope?

494


Explain pge Directives.

543


What is out println in jsp?

527


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

501


What are custom tags in jsp?

563


How to delete a cookie in jsp?

548