You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Thielen <da...@windward.net> on 2003/03/23 06:51:54 UTC

servlet mapping

How do I access a servlet without using <servlet-mapping>? I know servlet-mapping makes sense but I want to understand the other URI and everything I try doesn't make work:

servlet:
    webapp/WEB-INF/classes/ReportSales.jave

web.xml:
    <servlet>
        <servlet-name>SalesReport</servlet-name>
        <servlet-class>ReportSales</servlet-class>

    <servlet-mapping>
        <servlet-name>SalesReport</servlet-name>
        <url-pattern>/report</url-pattern>
    </servlet-mapping>

    </servlet>

The following all failed:
http://localhost:8080/WindwardReportsServlet/servlet/ReportSales
http://localhost:8080/WindwardReportsServlet/servlet/SalesReport
http://localhost:8080/WindwardReportsServlet/ReportSales
http://localhost:8080/WindwardReportsServlet/SalesReport

This does work:
http://localhost:8080/WindwardReportsServlet/report

??? - thanks - dave