File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes loading properties file from backing bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "loading properties file from backing bean" Watch "loading properties file from backing bean" New topic
Author

loading properties file from backing bean

Pamungkas Timotius
Greenhorn

Joined: May 22, 2005
Posts: 26
Hi...

How can we load properties file under /WEB-INF/classes/locales/accountProperties_en.properties into backing bean?

this code:


where


always throws exception.
When I debug my code, I found that accountPropertiesFile.exists() always returns false even if it's in WEB-INF/classes/locales directory.

What happened?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: loading properties file from backing bean