On Wed, 26 Feb 2003, José Moreira wrote:

> Date: Wed, 26 Feb 2003 16:31:23 -0000
> 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 =
> this.getClass().getClassLoader().getResource("config.properties").getPath().
> toString();
>
> FileInputStream in = new FileInputStream(path);
>
> properties.load(in);
>

You are working too hard.  :-)

InputStream is = getClass().getResourceAsStream("config.properties");
properties.load(is);

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to