servlet

A servlet is simply a class which responds to a particular type of network request - most commonly an HTTP request. Basically servlets are usually used to implement web applications - but there are also various frameworks which operate on top of servlets (e.g. Struts) to give a higher-level abstraction.
Servlets run in a servlet container which handles the networking side. One of the best-known open source servlet containers is Tomcat.