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 / n.muthukumar

sendRedirect() sends a redirect response back to the
client's browser.
forward() does not involve the client's browser.
The forward( ) is faster than Sendredirect( ).
RequestDispatcher.forward( ) works on the Server.

when you use send redirect it will rediredct the url to new
url and It will be displayed in browser.
response.sendRedirect(http://162.1.1.0/error.html);

When you use forward it will forward to particular page but
in browser forwarded url won't dispaly
<jsp:forward page http://162.1.1.0/error.html) />

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we invoke another servlet in a different application?

1265


Why do we need servlet filter?

1108


How to notify an object in session when session is invalidated or timed-out?

1125


What is http servlet?

1103


Explain the difference between generic servlet and http servlet?

1035


How can you start a jta transaction from a servlet deployed on jboss?

1204


What mechanisms are used by a Servlet Container to maintain session information?

1213


Why do we need a constructor in a servlet if we use the init method?

1098


How can we create deadlock situation in servlet?

1485


Which is the methods of generated servlet?

1293


What is the default http method in the servlet?

1347


What is java servlet session?

1022


What is the procedure for initializing a servlet?

1088


What is the web server used for running the Servlets?

1061


Can we override destroy method in servlet?

1035