Setup your environment variable "CATALINA_HOME" (if you are using
Windows, make sure it is a system environment rather than a user
environment variable), and then use
System.getenv("CATALINA_HOME");
to get the tomcat path.
Hope this can help
Cheers
Eric
-----Original Message-----
From: Joe Kramer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 July 2007 4:57 p.m.
To: [email protected]
Subject: How to find Tomcat config and log path?
Hello,
I've been googling and searching Tomcat website and couldn't find an
answer to this problem.
I need to find a path to tomcat conf (and log) folders from within my
servlet.
I imagine there should be something like:
SomeCatalinaClass.getHomePath()+File.separatorChar+SomeCatalinaClass.CON
F_DIR_CONSTANT
Can anyone help me please?
Thanks.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]