> Von: petra staub [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 1. August 2002 16:45
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: Reading properties file from ClassPath
> (ServletContextListener)
>
> with classpath i mean somewhere in the package of my
> web application
why you use getSystemResource()
>instead of getSystemResourceAsStream() ?
>
>Ralph Einfeldt
>Uptime Internet Solution Center GmbH
>Hamburg, Germany
>Hosting, Content Management, Java Consulting
>http://www.uptime-isc.de
>
> > -Ursprüngliche Nachricht-
>
üngliche Nachricht-
> Von: petra staub [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 1. August 2002 16:05
> An: [EMAIL PROTECTED]
> Betreff: Reading properties file from ClassPath
> (ServletContextListener)
>
> I have a registered class as a ServletContextListener.
Sorry for the uncomplete first email...my mailer was just to
fast for me... :-)
Again...
Hi,
I currently dont understand the following:
I have a registered class as a ServletContextListener.
At application start I want to read a
Hi,
I currently dont understand the following:
I have a registered class as a ServletContextListener.
At application start I want to read a Properties file
from the classpath, doing the following:
myProps = new Properties();
try {
URL url = ClassLoader.getSystemResource("com/foo/My.propert