I wouldn't rely on tomcat/bin - thats only because the startup script is
there.  If you dont use the standard startup mechanism, say run tomcat
inside another container, then it will be different (most likely).

Class.getResource() might be what you're looking for...

hth
dim

On Sat, 22 Sep 2001, Graham Leggett wrote:

> Hi all,
> 
> While configuring a to-be-deployed servlet, I have noticed that the
> programmer has placed absolute pathnames in a number of places within
> the parameters in web.xml, and within the log4j configuration file.
> 
> Some experimentation has revealed that the default directory of a given
> servlet is the same directory that tomcat was started from - in my case
> /var/tomcat4/bin.
> 
> What is the correct way of defining directories in config files (like
> web.xml), preferably without the need to use absolute paths...?
> 
> Regards,
> Graham
> 

Reply via email to