Question: How do I add a servlet mapping?

The following is an example of a servlet mapping. This should be located in your web.xml

<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>


CategoryJava

Java/how-do-i-add-a-servlet-mapping (last edited 2015-08-24 13:06:12 by wilhelms)