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 is java 2 platform, micro edition (j2me)?

1082


Why is j2ee needed?

904


What are the advantages in the use of spring for application development?

942


What is home interface?

1059


Is string an object in java?

890


What is content?

1034


What is javaserver pages standard tag library (jstl)?

863


What is java ee sdk?

903


What type of code is java?

883


What is the difference between session bean and entity bean ?

924


How do you compile java?

902


What is j2ee application?

968


What is ear file?

926


What will happen when you compile and run the following code?

959


What are the advantages of object-relational mapping (orm)?

873