A servlet is a Java program which is run on a web server.

A Java servlet is much like a Java applet, except that servlets are run on the web server instead of being downloaded to the web client.