Please qualify 'system path in which the executing webapp is running'.
do you mean the if your war has been exploded to /tomcat/webapps/myapp/
Then you need to get this path? It can be tricky, because, even if it
were possible by some magic including asking class loader where classes
binaries are
this inputstream and from yis file try the method getPath()
or getAbsolutePath()
-Message d'origine-
De : asaf.lahav [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 25 janvier 2007 16:04
À : 'Tomcat Users List'
Objet : RE: find where webapp installed via java code
Hi David and thanks
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Asaf,
asaf.lahav wrote:
Hi David and thanks for responding,
1. I am using an exploded WAR
2. I want my webapp to contain an additional jars folder (in addition to the
LIB folder) and I would like to know where the webapp is deployed so I'll
yis file try the method
getPath() or getAbsolutePath()
-Message d'origine-
De : asaf.lahav [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 25 janvier 2007 16:04
À : 'Tomcat Users List'
Objet : RE: find where webapp installed via java code
Hi David and thanks for responding,
1. I
yis file try the method getPath()
or getAbsolutePath()
-Message d'origine-
De : asaf.lahav [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 25 janvier 2007 16:04
À : 'Tomcat Users List'
Objet : RE: find where webapp installed via java code
Hi David and thanks for responding,
1. I am using
[EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, January 25, 2007 2:30 PM
Subject: Re: find where webapp installed via java code
Please qualify 'system path in which the executing webapp is running'.
do you mean the if your war has been exploded to /tomcat/webapps