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

What is session getattribute in jsp?

953


Which jsp methods can be overridden?

932


What is a page directive?

922


How can we avoid direct access of jsp pages from client browser?

1150


Is jsp front end or backend?

913


Explain the difference between servlet and jsp?

992


How can we forward the request from jsp page to the servlet?

937


What is cookie with example?

922


How to include a jsp file in another jsp file?

908


Why jsp is faster than servlet?

959


What is the page directive is used to prevent a jsp page from automatically creating a session?

964


How many jsp implicit objects are there?

966


How can we extend jsp technology?

1071


What is jspinit method?

988


How jsp is executed?

883