id Delbecq" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
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
from 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 D
quot;com/.../yourfile.properties");
> Create a file from 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
> À :
-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
ate a file from 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
ow if there is any better way to accomplish this.
Thanks in advance,
Asaf
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 3:30 PM
To: Tomcat Users List
Subject: Re: find where webapp installed via java code
Please qualify 'system pat
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
Hi all,
I have a servlet in which I need to find the file system path in which the
executing webapp is running.
10x,
Asaf