What is a
servlet?
Servlets are modules that extend request/response-oriented servers,such as Java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company�s order database. Servlets are to servers what
applets are to browsers. Unlike applets, however, servlets have no graphical user interface.
Whats the advantages using servlets over using CGI?
Servlets provide a way to generate dynamic documents that is both easier to write and faster to run. Servlets also address the problem of doing server-side programming with platform-specific APIs: they are developed with the
Java Servlet API, a standard Java extension.
for more questions check this following link
http://hotjobseeker.com/index.php?option=com_content&task=view&id=5959&Itemid=83