Accessing Beans From a Servlet

Quick Introduction to Servlets

A servlet is a generic server extension - a Java class that can be loaded dynamically to expand the functionality of a server. Servlets are commonly used with web servers, where they can take the place of CGI scripts.

--Java Servlet Programming 2nd Edition - O'Reilly

Servlets are executed inside a Java Virtual Machine. To be able to run servlets, you will need the servlet classes (available from Sun Web site and a servlet container (also called servlet engine or servlet runner). The official reference implementation and most commonly used servlet container is Apache's Tomcat Server and is freely available from the Apache web site (see also the section JSP/Servlet Server).

Servlet/JSP engines are embedded in J2EETM servers. JOnAS is packaged with either Tomcat or Jetty.