What is a Dynamic Servet?
A dynamic servlet is a servlet that is loaded by the container using
a segment of the URI as a classname. For example if a dynamic servlet
handler is within the context /servlet/* then a URI such as
/servlet/com.acme.Servlet/info will be mapped as follows:
ContextPath : /servlet
ServletPath : /com.acme.Servlet
PathInfo: /info
When first hit, the classpath of the context is searched for a
servlet class com.acme.Servlet. If found it is loaded and initialized.
Note that the alternative to a DynamicServlet is a ConfiguredServlet and
both types of servlet may AutoReloading .
Return to the JettyFaq