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 difference between redirect and forward method?

Answer Posted / kuljeet singh

forward() method sendRedirect() method

1) forward() sends the same request to another resource. 1) sendRedirect() method sends new request always because it uses the URL bar of the browser.
2) forward() method works at server side. 2) sendRedirect() method works at client side.
3) forward() method works within the server only 3) sendRedirect() method works within and outside the server.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is translation phase?

981


Why jsp is used instead of html?

955


How does response sendredirect work?

892


How can I prevent the output of my jsp or servlet pages from being cached by the browser?

983


What is session management in jsp?

901


What are the elements of a jsp page?

858


Is there a way to reference the "this" variable within a jsp page?

982


Explain the uses of tag.

863


Which syntax is used to comment jsp?

878


What is pagescope in jsp?

863


What is jsp page?

908


What is the difference between include and jsp directive: include action?

994


How does a servlet communicate with a jsp page?

912


How we can configure init params in jsp?

968


How does a jsp function?

861