AW: AW: Reading properties file from ClassPath (ServletContextListener)

2002-08-01 Thread Ralph Einfeldt
> 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

Re: AW: Reading properties file from ClassPath (ServletContextListener)

2002-08-01 Thread petra staub
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- >

AW: Reading properties file from ClassPath (ServletContextListener)

2002-08-01 Thread Ralph Einfeldt
ü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.

Re: Reading properties file from ClassPath (ServletContextListener)

2002-08-01 Thread petra staub
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

Reading properties file from ClassPath (ServletContextListener)

2002-08-01 Thread petra staub
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