Why don't you put your property file to your application classpath, and
use ResourceBundle.getBundle("bundlename");

Oliver

-----Ursprüngliche Nachricht-----
Von: deepaksawdekar [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 9. September 2003 14:58
An: Struts Users Mailing List
Betreff: problem in getproperties.


I am using following code to access the property from properties file in
my action class. Code snippet is as follows... .. InputStream in =
ClassLoader.getSystemResourceAsStream( propertyFilePath);
properties.load(in);
value = properties.getProperty(key);
....

When I write the main in action class it works fine
but when i copied the same code to execute method, the code does not
load the propertyfilepath file properly even though in both the case
class path and location of file is same. 

Am i doing something wrong.


Deepak 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19.08.2003
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to