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's the architecture of a servlet package?

982


How forward () method is different from send redirect () method?

914


What is the difference between encodeRedirectUrl and encodeURL?

1061


When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

975


What is the inter-servlet communication?

1132


What is httpservlet and how it is different from genericservlet?

1037


Why servlet is used as controller ? Not JSP? I want complete explation?

1077


Explain in brief the directory structure of a web application?

1054


What if you need to span your transaction across multiple servlet invocations?

1034


What is servletconfig?

974


What is called Session Tracking?

1109


What is MIME Type?

1093


How to get the path of servlet in the server?

945


What are the exceptions thrown by servlets? Why?

1099


What are its drawbacks of cgi?

1027