Thanks. I know that Servlets can access that file, but what about a Java
bean? can it access the file in WEB-INF? I've tried it, and it couldn't find
it. Thanks!
howard
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Hernandez, Rey
Sent: Tuesday, October 24, 2000 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: where should I put the property file?
For tomcat, I put the property file in the WEB-INF directory and use the
ResourceBundle class to get access to it.
-----Original Message-----
From: Howard Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 23, 2000 2:40 PM
To: [EMAIL PROTECTED]
Subject: where should I put the property file?
Hi,
I have a property file (a text file) that I'd like to load it in run time
from a servlet. I hard coded the path and the file name in a java file, and
my servlet basically gets it from the bean. The problem is that it is not
finding it. I'm using Tomcat at the moment, but this may change later. What
is the best way to load a text file in run time? Where should I place the
file? Should I use JNDI to do this? I'd like to hear how others are doing
it. Thanks!
howard
===========================================================================
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
===========================================================================
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
===========================================================================
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