tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Angus" <da...@apache.org>
Subject RE: StandardContext .. getPath()
Date Thu, 11 Jul 2002 14:44:08 GMT
I'll answer my own question..
getServletContext() returns null until start() (or in my case super.start())
has been called, whereafter I can use ServletContext.getRealPath()

d.

> -----Original Message-----
> From: Danny Angus [mailto:danny@apache.org]
> Sent: 11 July 2002 14:22
> To: Tomcat-Dev@Jakarta. Apache. Org
> Subject: StandardContext .. getPath()
>
>
> Hi,
>
> I can't find the answer to this question anywhere, although I expect its
> quite simple..
>
> I've created my own context class, subclassing StandardContext, and I want
> it to be able to read a config file, but I'm having problems
> getting a path
> from tc.
>
> How can I get the real path to ~/webapps, or get CATALINA_HOME for my
> context to use in its hunt for its config file?
>
> I realise I may have missed the blindingly obvious here, for which I
> appologise in advance.
>
> d.
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-dev-help@jakarta.apache.org>
>


--
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