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:
- <servlet-name> - the servlet name, this is used to match the <servlet-name> element in one or more <servlet-mapping> tags
- <servlet-factory> - the location of the servlet factory method.
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>