Hi,
   I need to read a config file given only its name.I want to use the
CLASSPATH in order to get to the path of the file.For that I am using the
method getClass().getResourceAsStream("file").
I want to read the configuration file in a static method for obvious
reasons. My propblem is that getClass() is a non-static method so I cant
call it from a static method.
Is there any other way to read a file using the CLASSPATH , which can be
called from a static black also.

TIA,
gg

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to