tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dov Rosenberg <>
Subject How to get the context path for a web application?
Date Tue, 10 Aug 2004 02:49:29 GMT
I need to find a way to get the context path of the current web application.
I would like to to it using the HttpSession, HttpServletRequest or response.
I tried the ServletContext.getServletContextName but it returns null in
Tomcat. Is there a cross container solution?

Dov Rosenberg
Conviveon Corporation

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message