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

What are the different methods of session management in servlets?

946


What are the new features added to servlet 2.5?

1047


Can we fetch the attributes related to a servlet on a different servlet?

1086


What do you mean by default initialization in java servlet?

1057


Explain request dispatcher and its methods.

946


How to create war file?

1097


Given the request path below, which are context path, servlet path and path info?

990


How to read request headers from servlets?

999


Explain the concept of ssi ?

993


What do you mean by request dispatcher in servlet?

1074


What are different Authentication options available in Servlets.

1012


What is servlet and its advantages?

996


How to get the server information in a servlet?

1119


What is cookie? Why is cookie used?

1010


What is the use of request dispatcher interface?

963