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 the advantage of using Servlets over CGI programming?

Answer Posted / janet

Servlets are only instantiated when the client first
accesses the program. All subsequent accesses are done to
that instance.This keeps the response time of servlets lower
than that of CGI programs, which must be run once per
hit.also because servlet is instantiated only once,all
accesses are put through that one object. This helps in
maintaining objects like internal connection,pooling or user
session tracking and lots of other features.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dispatcher servlet?

1063


What is url encoding and url decoding

1148


Why the concept of single thread model interface is used?

990


Are Servlets Thread Safe? How to achieve thread safety in servlets?

968


What is servlet in simple terms?

1018


What are the types of an http request?

1151


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

1205


What are the life cycle methods of a servlet?

1045


What are the uses of servlets?

1135


What is servlet attributes and their scope?

1057


How do we translate jsp?

1050


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

1167


What is the requirement of servlet config and servlet context implemented and how are they implemented?

997


What is difference between PrintWriter and ServletOutputStream?

1289


What is httpservlet and how it is different from genericservlet?

1095