A Servlet is a web service implemented in Java.
Java servlets are objects (usually run on a J2EE application server) that receive a request and generate a response to it, commonly in HTML or XML. They are the Java counterpart to dynamic web content such as PHP.
The most common OpenSource server used for Java servlets is Apache TomCat.
One page links to JavaServlet: