Howard,

Use the ResourceBundle for setting up your property file and when you
initialize your servlet you can read from that file.



-----Original Message-----
From: Howard Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 23, 2000 5: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, 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

___________________________________________________________________________
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

Reply via email to