Adding a Servlet to a Context

The following XML fragment adds a servlet to the current context.

<Call name="addServlet">
<Arg>Servletname</Arg>
<Arg>/ServletContext/*</Arg>
<Arg>com.ebd.dummy.servlet.MySpecialServlet</Arg>
</Call>


Where Servletname is the name of the servlet, such as it should appear in the information area.

ServletContext is the context in which the servlet should be offered. It will be appended to the context to which the servlet is added (here service).

The third parameter is the fully qualified class name of the servlet.

URLs that address the servlet as defined above would have the following structure.

http://<myServer>/service/ServletContext/path/info?key1=val1