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 happens if we wont use destroy()?

Answer Posted / aru

forward is server side redirect and sendRedirect is client
side redirect. When you invoke a forward request, the
request is sent to another resource on the server, without
the client being informed that a different resource is going
to process the request. This process occurs completely with
in the web container And then returns to the calling method.
When a sendRedirect method is invoked, it causes the web
container to return to the browser indicating that a new URL
should be requested. Because the browser issues a completely
new request any object that are stored as request attributes
before the redirect occurs will be lost. This extra round
trip a redirect is slower than forward. Client can disable
sendRedirect.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of dispatcherservlet properties?

1105


Explain the lifecycle of a servlet?

967


If some new data has entered the database, explain how can a servlet refresh automatically?

1289


What is webservlet?

991


What is servlet instance?

1047


Explain the different ways for servlet authentication?

1093


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

1162


How many objects of a servlet is created?

1268


Why doesn’t a servlet include main()? How does it work?

1153


how the HTML data stored in web server?

2630


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

1052


What is the need of session tracking in web application?

1028


What is the difference in between the httpservlet and generic servlet?

1118


How do you configure a centralized error handler in servlets?

1102


Explain the architechure of a servlet?

1114