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

in jsf page i use two dropdown list.i.e state & district.if state dropdown is selected then & then district is enable.what should be my code.

2576


Explain the difference between jspwriter and servlet printwriter in jsp?

1021


What are the jsp tags?

933


Can we define a class in a jsp page?

961


What is jsp expression?

1010


What is the difference between jsp and php?

952


What is a javaserver pages (jsp)?

1032


What are the jsp standard actions?

1048


Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?

982


What are implicit objects in jsp?

1004


How are jsp(java server pages) better than asp(active server pages)?

1012


How is jsp include directive different from jsp include action. ?

1034


How are custom tags in jsp created?

997


How can information from one JSP be passed to another JSP?

1060


How to find out the name of the http method using jsp el?

999