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

Why are jsp pages preferred for creating web-based client program?

621


What is action tag in jsp?

575


How is jsp better than servlet technology?

636


Is jsp front end or backend?

569


Is jsp used?

578






What are context initialization parameters?

637


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

1699


What is scriptlet and what is expression?

601


Can I stop jsp execution while in the midst of processing a request?

620


What is server side programming language?

574


How does a jsp engine work?

591


How to delete a cookie in jsp?

614


How do you delete the session data?

597


What is an api with example?

684


What is contextpath?

584