I make use of property files to set basic configuration options for the web
application. I've simple placed the property files in the CLASSPATH and
everything has worked fine. One thing to note is that your Servlet Engine
likely has it's own classpath settings - make sure it includes the path to
your file.
Donald
> I have a JSP file that instantiates a server side java class that needs to
> read a file from the server filesystem. Regardless of where I put the
file,
> the java class always throws a FileNotFoundException. I would have
thought
> the file would be looked for in the same directory as the class file that
is
> looking for it but this is not so. I have also tried in the root context
> directory and other locations but to no avail.
===========================================================================
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