Java Servlets - Loading and Invoking

Java Server

Servlet Loading and Invoking (Beta)


Documentation

Where are Servlets Loaded From?

Servlets can be loaded from 3 places:
  1. From a directory that is on the CLASSPATH. The CLASSPATH of the JavaWebServer includes service_root/classes/ which is where the system classes reside.
  2. From the /servlets/ directory. This is *not* in the server's classpath. A classloader is used to create servlets from this directory. New servlets can be added - existing servlets can be recompiled and the server will notice these changes.
  3. From a remote location. For this a codebase like http://nine.eng/classes/foo/ is required in addition to the servlet's class name. Refer to the admin GUI docs on servlet section to see how to set this up.

Remote Servlets

Remote servlets can be loaded on to the server by:
  1. the admin tool by configuring the servlets section there.
  2. the server side include tags in .shtml files
  3. the filter chain configuration
Remote servlets have security implications.

How Are Servlets Identified?

Servlets are identified by <servletName> which is either:

How Are Servlets Invoked?

Servlets are loaded and invoked by: NOTE: <servletName>> is any valid servlet identifier as described in the previous section.
Top
java-server-feedback@java.sun.com