Trying out a simple servlet on Tomcat 6 and 7:
        <servlet>
                <servlet-name>pathservlet</servlet-name>
                <servlet-class>LoggingServlet</servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>pathservlet</servlet-name>
                <url-pattern>/*</url-pattern>
        </servlet-mapping>
mounting the application on the context path:
        /app
and sending a request:
        GET /app
yields the following values on the request:
        requestUri = "/app"
        contextPath = "/app"
        servletPath = ""
        pathInfo = "/"

This seems to violate the rule:
        requestUri = contextPath + servletpath + pathInfo
on page 28 of the Servlet 2.5 spec (pathInfo should be null).
Or am I missing something?

Best regards
Mike Wilson
-- 
View this message in context: 
http://old.nabble.com/servlet-spec-violation--tp30748094p30748094.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to