24/02/10 Java servlets A servlet is a Java class. Usually a subclass of HttpServlet (which is abstract). Methods: init, doGet, destroy Your servlet may override these. A server that can run servlets is often called a servlet engine or a servlet container Such a server will run a Java Virtual Machine Reading Distinguish from CGI/FASTcgi/php Tomcat (a servlet engine) Tomcat as a standalone Web server Tomcat as a 'back-end' to Apache ('integration')