tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45484] New: ServletContext.getContextPath returns "" for the root context
Date Fri, 25 Jul 2008 16:42:45 GMT

           Summary: ServletContext.getContextPath returns "" for the root
           Product: Tomcat 6
           Version: 6.0.16
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API

The JavaDocs for ServletContext.getContextPath() state:
"The path starts with a "/" character but does not end with a "/" character"

However when calling getContextPath() for the ROOT context an empty string ""
is returned.

This returned path also does not work when passed back to
ServletContext.getContext(String). If called with "" null is returned which is
consistent with the JavaDocs for that method.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message