Knowledge Base - FAQ

Question: How do I add a servlet mapping?

The following is an example of a servlet mapping. This should be added to either
your web.xml or to your server.xml in the proper virtualhost.
<web-app>
    <servlet>
        <servlet-name>
            example
        </servlet-name>
        <servlet-class>
            ExampleServlet
        </servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>
            examples
        </servlet-name>
        <url-pattern>
            /example
        </url-pattern>
    </servlet-mapping>
</web-app>


Last Modified: May 02, 2006


Kattare is Trustwave Certified and Safe Harbor Certified | Rated Safe For Kids by ICRA | All Rights Reserved Worldwide
Copyright © 1997 - 2012 Kättare Internet Services | Processed in 0.012 seconds by pyramid-05 in Corvallis, Oregon