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 Forward() and sendRedirect()
methode?

Answer Posted / sambasiva

Forward()

->Forward Method is available in RequestDispatcher which is
used to forward the request one component to another web
component which are available in same application
->Forward Method will happen completely on the ServerSide
->When u forwarding the request u can send the data from one
component to another component by attaching to request as an
attribute.
sendRedirect()

->This method available in HttpServletResponse which is used
to send the request from one component to another component
which are available in different application
->sendReddirect will happen both on client side or server side
->when u sendredirect the request u can send the data from
one component to another component as a query string.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions of an intercepting filter?

882


Explain the different ways for servlet authentication?

1029


How do you define a servlet?

936


Does servlet have main method?

1133


What is meant by a web application

965


What is a deployment descriptor?

1045


What are the steps involved in placing a servlet within a package?

1028


What is cookies in servlet with example?

1016


How to rectify errors in java servlet while compilation?

889


What are the advantages of servlets over traditional cgi?

1037


Can we override servlet service method?

1049


Why filter is used in servlet?

930


What is difference between cookies and httpsession?

1024


List out difference between a JavaBean from a Servlet?

967


Is it good idea to create servlet constructor?

1205