Why don't you just load the properties file as an inputstream. If you get
the path and then use that for a File object, you are making your webapp
non-portable. If your webapp is served directly from a .war file, you
won't have the ability do perform File IO. Use streams and URL's and you
-feira, 26 de Fevereiro de 2003 15:35
Para: Tomcat Users List
Assunto: Re: Properties file [SOLVED?]
Why don't you just load the properties file as an inputstream. If you get
the path and then use that for a File object, you are making your webapp
non-portable. If your webapp is served directly
]
Enviada: quarta-feira, 26 de Fevereiro de 2003 15:35
Para: Tomcat Users List
Assunto: Re: Properties file [SOLVED?]
Why don't you just load the properties file as an inputstream. If you get
the path and then use that for a File object, you are making your webapp
non-portable. If your webapp is served
On Wed, 26 Feb 2003, José Moreira wrote:
Date: Wed, 26 Feb 2003 16:31:23 -
From: José Moreira [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Properties file [SOLVED?]
still didnt work ...
my code :\
String path
From: Craig R. McClanahan [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 11:37 AM
Subject: RE: Properties file [SOLVED?]
From: José Moreira [EMAIL PROTECTED]
String path =
this.getClass().getClassLoader().getResource(config.properties).getPath().
toString