Re: loading resources from the servlet.

2005-08-06 Thread Anoop kumar V
to do it for the webapp inside Tomcat? Regards, maciek PS. What does HTH stand for? -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 12:28 PM To: Tomcat Users List Subject: Re: loading resources from the servlet. http

loading resources from the servlet.

2005-08-05 Thread Maciej Stoszko
I have a class X which needs to load a .properties file. Here is a code snippet: ClassLoader cl = this.getClass().getClassLoader(); InputStream stream = cl.getResourceAsStream(/data/x.properties); It works just fine from my JUnit test for X. Now, I would like this class to be

Re: loading resources from the servlet.

2005-08-05 Thread Jon Wingfield
http://wiki.apache.org/jakarta-tomcat/HowTo#head-45c3314139cb900ddd43dde2ff671532e6e844bc HTH, Jon Maciej Stoszko wrote: I have a class X which needs to load a .properties file. Here is a code snippet: ClassLoader cl = this.getClass().getClassLoader(); InputStream stream =

RE: loading resources from the servlet.

2005-08-05 Thread Maciej Stoszko
List Subject: Re: loading resources from the servlet. http://wiki.apache.org/jakarta-tomcat/HowTo#head-45c3314139cb900ddd43dde2ff6 71532e6e844bc HTH, Jon Maciej Stoszko wrote: I have a class X which needs to load a .properties file. Here is a code snippet: ClassLoader cl = this.getClass