Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / prasanth setty

When you want to preserve the current request/response
objects and transfer them to another resource WITHIN the
context, you must use <jsp:forword>

If you want to dispatch to resources OUTSIDE the context,
then you must use sendRedirect. In this case you won't be
sending the original request/response objects, but you will
be sending a header asking to the browser to issue a
request to the new URL.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a jsp container?

990


What is a output comment?

968


Why are the request.getrequestdispatcher() and context.getrequestdispatcher() used?

1042


Can constructor be used instead of init(), to initialize servlet?

951


How clear chache and buffer of opera browser.

2398


What is jsp taglib?

887


What do you mean by jsp?

917


How many jsp scripting elements are there and what are they?

1008


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

860


Why do we need custom tags?

897


How do I run a jsp file?

937


what are the tools used in your project , How to ask the answer this question

2025


How do I create a dynamic web project?

897


How can we extend jsp technology?

1064


What is jsp and why is it needed?

936