Since the end result of JSP page is a servlet located somewhere in Servlet
Engine's designated directory it would be looking in there for the file and
not in the same directory where you JSP is. Thus, it would be best to
specify the full path to the properties file.(ie c:\myfile.properties ) Or
you have to figure out where you servlet engine stores the compiled JSPs.
-----Original Message-----
From: Dmitry Grenader
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 22, 1999 6:05 PM
To:
Subject: Reading .properties file from JSP ?
I have a Java bean that reads some info from a properties
file (using
java.Util.PropertyResourceBundle). I tested it from DOS on
the command
line. When I call it from the .jsp file, it does not find
the properties
file. What am I doing wrong ? Where is it looking for a
file?
Error is: can't find resource for product_en_US
[Note: my properties file is called product.properties]
Thanks!
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body
of the message "signoff JSP-INTEREST". For general help,
send email to
[EMAIL PROTECTED] and include in the body of the message
"help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".