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 different ways for servlet authentication?

1162


How to upload a file to the server using servlet?

1048


What is a server side include (ssi)

1232


What is MIME Type?

1199


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

1096


Which are the different ways you can communicate between servlets?

1051


What is the requirement of servlet config and servlet context implemented and how are they implemented?

1047


Can you use javascript in servlets?

1120


What is ServletConfig object?

1245


What is the GenericServlet class?

1290


What is difference between jsp and servlet?

1208


What is the difference between get and post methods?

1099


What are the steps that are involved in using the httpservlet class?

1181


How do we translate jsp?

1105


Is servlet a controller?

1054