aspose file tools*
The moose likes Servlets and the fly likes CGI vs Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "CGI vs Servlets" Watch "CGI vs Servlets" New topic
Author

CGI vs Servlets

Raja Siva Ganesh Panuganti
Greenhorn

Joined: Jul 18, 2006
Posts: 6
Plzz let me know the major difference between servlets and CGI
plz tell me abut their pros and cons
THANKS IN ADVANCE
Colin Shine
Greenhorn

Joined: Aug 12, 2005
Posts: 26
Servlets have far better scalability and performance, because each request is handled with a lightweight thread instead of spawning a new process.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61601
    
  67

Raja Siva Ganesh Panuganti, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "plz" instead of spelling out "please" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

thanks,
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
udit agarwal
Greenhorn

Joined: May 25, 2006
Posts: 9
The diff btw cgi and the servlets.

Cgi loads every time when a request comes..but in case of sertlets the controller loads on only 1 time at the time of the first request...and then just create an new thread...so cgi is slower then servlets..but at the first time when the servlets loads is slow...there is less secuirty in cgi then servlets...


Good Designer is alwasys a good programmer. Trying to improve designing skill...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CGI vs Servlets