Hi,
I have a servlet, with a section of the filesystem as follows:
lib/myservlet.jar
etc/settings.txt
before I packaged the jar, I was using getResourceAsStream to open the
settings file. It now returns null
getResourceAsStream("../../etc/settings.txt");
The classpaths have changed, so I am wondering, can a class in a classpath
open a resource that is in a higher level directory
(the classpath is pointing to the jar)
can I find out the location of the settings file to open with the filereader?
thanks
Rob
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html