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 / vipin gupta trainer

There is a difference between the
HttpResponse.sendRedirect() method and the
RequestDispatcher.foward() method .


the sendRedirect() method leverage Https built in redirect
features to send a message back to the client and foce the
visitors Browser to request a new page .


the forward() method transfer the HttpServletRequest and
HttpServletResponse methods to the indicated file on the
web server. the forward() method never communicates with
the visitors browser .

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you delete a cookie within a jsp?

1147


Explain the advantages of jsp?

1022


What's the difference between javabeans and taglib directives?

940


How does response sendredirect work?

934


What is el?

937


What are stored procedures? How is it useful?

942


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

1024


What are the life-cycle methods for a jsp?

957


Define jsp declaration?

968


What is the purpose of ?

955


What is the purpose of ?

949


Can I declare a java class in jsp?

993


What is the use of pagecontext in jsp?

910


Explain the uses of tag.

909


What are the different scope values for the jsp objects?

941