Yep, exactly
> -Ursprüngliche Nachricht-
> Von: Kris Schneider [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. Juli 2004 17:30
> An: Struts Users Mailing List
> Betreff: Re: AW: AW: OT: Problems with classpath under tomcat 5
>
> Does "filename&q
Nachricht-
> > Von: Kris Schneider [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 21. Juli 2004 16:54
> > An: Struts Users Mailing List
> > Betreff: Re: AW: OT: Problems with classpath under tomcat 5
> >
> > ..
> > String fileName = target.getConfigu
Thanx, but it doesn't work either.
> -Ursprüngliche Nachricht-
> Von: Kris Schneider [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. Juli 2004 16:54
> An: Struts Users Mailing List
> Betreff: Re: AW: OT: Problems with classpath under tomcat 5
>
..
String fileName = target.getConfigurationName() + ".properties";
ClassLoader cl = Thread.currentThread().getContextClassLoader();
InputStream in = cl.getResourceAsStream(fileName);
Properties props = new Properties();
props.load(in);
..
Quoting "Rosenberg, Leon" <[EMAIL PROTECTED]>:
>
>
> >
> -Ursprüngliche Nachricht-
> Von: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. Juli 2004 16:10
> An: Struts Users Mailing List
> Betreff: Re: OT: Problems with classpath under tomcat 5
>
> Are you sure if it is not looking your properties file in the
> classpath of
5 matches
Mail list logo