https://issues.apache.org/bugzilla/show_bug.cgi?id=45484

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


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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to