Servlets are Java objects that implement the Java Servlet API originally defined by Sun for dynamic web page creation.
Servlets process ServletRequests and generate ServeletResponses to service http requests, these servelets are contained by servlet containers such as Tomcat or Jetty, which map URLs to servlets.
Today the servlet specification is managed by the Java Community Process, under the specification JSR-154.