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 is the use of request dispatcher interface?

1009


Which httpsession object is used to view and manipulate information about a session?

1167


Which event is fired at the time of session creation and destroy?

1391


Is servlet a controller?

1007


How is a servlet implemented in code?

1081


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1169


How native code can be used in a servlet?

4066


Explain the features are in servlet 3?

1050


Explain the servlet filter.

981


What are the life-cycle methods for a servlet?

997


Why is servlet used?

1168


What is webservlet?

993


What is war file?

1093


What do you mean by servlet?

1145


How the typical servlet code look like ?

1231