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 7662] New: - javax.servlet.ServletContext;
Date Mon, 01 Apr 2002 16:49:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7662>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7662

javax.servlet.ServletContext;

           Summary: javax.servlet.ServletContext;
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: syloke.soong@nsc.com


Platforms and OS affected:
NT 4/Intel Pentium III
Solaris 8/Sparc Ultra80

Using tomcat 4.0.1 I could get servlet context of another application running 
on the same tomcat server, regardless jdk1.3 or 1.4 . For example,

Current servlet context is "/myservlet".

ServletContext srvctx = request.getSession().getServletContext();
ServletContext rootctx = srvctx.getContext("/");
ServletContext cachectx = srvctx.getContext("/cache");

rootctx and cachectx contexts would result in non-null resolvable values.

However when I ran myservlet to tomcat 4.0.3,regardless jdk1.3 or 
1.4, "/myservlet" produced null values for rootctx and cachectx .

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message