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 sendRedirect() and forward()?
in what situations do we have to use send redirect()
instead of forward().

Answer Posted / guest

Both senredirect and forward metods are used to forward the
request to another resourse
but
1)the request dispatcher() is used when we want to redirect
the client requestto some other resourse (ie:out of context)
or whenver we want to redirect errors
where as
use forward()when we sending a page that is within in the
same site
2)forward() are executed on the serverside but send redirect
()are on the client side


jawahar

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is included in j2ee?

850


Is tomcat a java ee?

836


What is asant?

961


What is deployment descriptor?

933


How many java languages are there?

897


Is java more difficult than c++?

907


What is form-based authentication?

918


What is java awt event?

846


what is direct link to download swing ebook,applet,ejb,core java

2531


Is java procedural or object oriented?

836


What is event in java?

828


What is cmp in j2ee?

845


What is the build file?

875


What is javamail?

880


What is j2ee component?

970