Thanks. Do you know if a Java bean can access the resource file? I've tried
ResourceBundle and it works well when it calls from a Servlet, but it
couldn't find it from a Java bean. Have you tried that? Thanks.

howard

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rema
Kumar
Sent: Tuesday, October 24, 2000 11:45 AM
To: [EMAIL PROTECTED]
Subject: Re: where should I put the property file?


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

___________________________________________________________________________
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