tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wall" <>
Subject Re: How to get the context path for a web application?
Date Tue, 10 Aug 2004 16:07:15 GMT
> request.getContextPath();

Is there a way to do it when not serving a web page?  Like in a startup
servlet that has a ServletConfig/Context, but doesn't have a request?  This
way, the context could be retrieved once and cached and used in situations
unrelated to processing a specific HTTP request.


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

View raw message