jQuery in Action, 3rd edition
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

CGI vs Servlets

Raja Siva Ganesh Panuganti

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
Colin Shine

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

Joined: Jan 10, 2002
Posts: 63852

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.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
udit agarwal

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
It's not a secret anymore!