|
Java™ by example!
|
|
|
How do Servlets compare to CGI?
A couple advantages of Servlets over CGI: Servlets - don't start up a new process for each request coming in (traditional CGI scripts do!). Instead threads inside the same VM process are executed. - are written in the Java language and you have access to all its API's - are written in the Java language and are thus portable - allow you to focus on your core business, lots of things are done behind the scene, like parsing and decoding form data. - can talk to the webserver (cgi's can't) - can be fired up when the webserver starts up and can share data among instances (useful if you want to implement DB connection pooling) Also, check out the following sites:
http://java.sun.com/features/1998/03/inetbiz.html http://citeseer.nj.nec.com/333940.html http://www.ecst.csuchico.edu/~gmurray/presents/servlets.html
Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|