You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sridhar Devulkar <sd...@jacent.com> on 2002/12/12 19:10:29 UTC
Accessing the Context tag attributes of server.xml ...
Hello,
I am trying to get the application url (path) and the docBase value that I
have provided in my <Context> tag in the server.xml file from my servlet
code. The context that I have given is like this ..
<Context path="/admin" debug="9" docBase="modules/admin/public"
reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="admin_log." suffix=".txt"
timestamp="true"/>
</Context>
I somehow need to ge the "path" and the "docBase" values without issuing a
Http request. Actually, I have a servlet that perform all my application
initialization and that point, I need to get these values.
Please help.
Thanks.
Sridhar.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>