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...

difference between forward and sendredirect

Answer Posted / dsr

FORWARD-->
1. THE REQUEST AND RESPONSE OBJECT REMAIN SAME.
2. CONTROL DIRECTLY GOES TO REQUESTED PAGE AT THE POINT
WHERE FORWARD IS CALLED.
3. REQUEST DISPATCHER IS NEEDED.
4.forward() is used to transfer the request within the web
application

SEND REDIRECT:--->
1.NEW REQUEST AND RESPONSE IS GENERATED IN CASE THIS CASE.
2.IN THIS CASE FIRST CONTROL GOES TO CLIENT(BROWSER) AND
THEN TO REQUESTED PAGE.
3.JUST RESPONSE OBJECT IS NEEDED.
4.sendRedirect() is used to transfer the request from same
webapplication or different webapplication.

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various ways of session supervision in servlets?

945


What is called Scriptlet?

1054


What is servlet and its life cycle?

1072


Can we refresh servlet in client and server side automatically?

1000


What is the inter-servlet communication?

1131


How do I support both get and post from the same servlet?

1170


What are the key methods that are involved in processing of http servlets?

1049


How the JSP file will be executed on the Server side?

1074


What is meant by servlet? What are the parameters of the service method?

963


Why is servlet used?

1122


How to generate the server side programming and the advantages of it over the other languages?

940


Whether thread can be used in servlets?

1159


What is servlet lazy loading?

1111


request parameter how to find whether a parameter exists in the request object?

954


What is the difference between 2 types of servlets?

1083