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] ServletContext.getContextPath returns "" for the root context
Date Fri, 25 Jul 2008 17:40:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45484


Eric Dalquist <eric.dalquist@doit.wisc.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric.dalquist@doit.wisc.edu




--- Comment #2 from Eric Dalquist <eric.dalquist@doit.wisc.edu>  2008-07-25 10:40:58
PST ---
Changing:
if (files[i].equals("ROOT"))
    contextPath = "";

To:
if (files[i].equals("ROOT"))
    contextPath = "/";

In HostConfig does resolve the problem with getContextPath and getContext,
cross-context dispatching to and from the root context all work. There still
may be other issues that I don't know about as I'm not that familiar with the
Tomcat code but hopefully a Tomcat developer can comment on that.


-- 
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