https://issues.apache.org/bugzilla/show_bug.cgi?id=54876
Mark Thomas <ma...@apache.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID OS| |All --- Comment #1 from Mark Thomas <ma...@apache.org> --- (In reply to comment #0) > I have a webapp with the following in web.xml: > > <display-name>Diagnostics Portal Application</display-name> > > As a consequence, ServletContext.getServletContextName() returns > "Diagnostics Portal Application", > which renders the method pretty useless. This is as per the Servlet specification. > IMO, the purpose of the method would be to allow various deployments of the > same webapp to detect the different deployment names (aka context path). Your opinion is wrong. > AFAICT, there is currently no supported possibility to detect the context > path. Also wrong. You need to spend some time reading the Servlet specification or at least the Javadoc for ServletContext. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org