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 redirect and forward method?

Answer Posted / kuljeet singh

forward() method sendRedirect() method

1) forward() sends the same request to another resource. 1) sendRedirect() method sends new request always because it uses the URL bar of the browser.
2) forward() method works at server side. 2) sendRedirect() method works at client side.
3) forward() method works within the server only 3) sendRedirect() method works within and outside the server.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between include directive and jsp:include action?

950


Which jsp method cannot be overridden?

939


What is jsp include tag?

906


Can you disable jsp scripting?

954


What is an api with example?

1039


How do I include static files within a jsp page?

960


Give the use of session object.

1019


How do we prevent browser from caching output of my jsp pages?

967


What are the standard actions available in jsp?

1032


What is jsp container?

958


write a program in javasacript to shake the window

2903


What is the default value of session attribute in jsp?

874


in jsf page i use two dropdown list.i.e state & district.if state dropdown is selected then & then district is enable.what should be my code.

2522


What is an implicit object?

903


Which tag is used for error handling in jsp pages?

838