CGI - Common Gateway Interface
The Common Gateway Interface, or CGI, is a standard for external gateway programs to interface with information servers such as HTTP servers.
http://hoohoo.ncsa.uiuc.edu/cgi/intro.html One of advantages of servlets is using
Java language, which could be more powerful and flexible than Perl, PHP or C. Imagine that you want to write enterprise application with Perl. You will have many problems with accessing database, using transactions, using XML, using messaging etc. In Java(
J2EE) you have everything ready to use.