tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45484] New: ServletContext.getContextPath returns "" for the root context
Date Fri, 25 Jul 2008 16:42:45 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: eric.dalquist@doit.wisc.edu


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message