servlet tag reference - novalexei/mod_servlet GitHub Wiki

#####<servlet>

This is a container tag used to specify a mod_servlet servlet and it's parameters.

There are two required elements:

There is also two optional elements:

  • <init-param> - Define initial parameters for the servlet.
  • <load-on-startup> - Requests the container to load the servlet on startup rather than on the first access.

Full Servlet Definition Example:

<servlet>
    <servlet-name>Simple</servlet-name>
    <servlet-factory>libsimple.so:simpleServlet</servlet-factory>
</servlet>
<servlet-mapping>
    <servlet-name>Simple</servlet-name>
    <url-pattern>/servlet/SimpleServlet</url-pattern>
</servlet-mapping>

To web.xml reference page

⚠️ **GitHub.com Fallback** ⚠️