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 / bindhu solomon

When we use forward, then servlet container forwards all
request to the target page. but in the case sendRedirect,
container makes a new request to the target Page.
So in forward , url link doesn't change but in sendRedirect
url line change . Because container makes a new request,
sendRedirect is much slower than forward.

If a target page has no relation with current
page , then we can use sendRedirect(I think so....)

Is This Answer Correct ?    35 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you explain load() and get() methods?

991


What is difference between j2ee and java?

919


What is meant by j2ee?

920


Why is java robust?

1235


What are the four components of j2ee application?

1001


What is java awt event?

882


What is core java and j2ee?

913


Where is java used?

905


What is B2B?

974


What is application client?

981


What is a java developer?

1005


What do you understand by business logic?

905


Define the struts in the j2ee framework?

901


What is the difference between java and core java?

945


What are j2ee components?

878