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 / ajay

sendRedirect() means it's client side redirect at that time
new parameters can be added.(i.e HttpRequest, HttpResponse)

forward() meand it's server side redirect at that time same
parameters can be used.


forward() can be used forwarding the request from one
servlet to jsp.(i.e with in the container).

redirect() can be used redirecting the one jsp to another
jsp(i.e different containers).

Is This Answer Correct ?    56 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are j2ee technologies?

985


What is component contract?

986


What is enterprise information system resource?

1018


What is application configuration resource file?

967


Is java gui dead?

970


What is 2 stands for in j2ee?

1026


Describe the file types *.ear, * .jar and *.war?

1053


What is tomcat in j2ee?

927


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

2635


What is application client container?

1014


What is j2ee tutorial?

1166


What are different modules in spring?

976


What is the ear file?

989


What are the technologies a java developer must know?

944


What is layout manager in java?

930