aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loading properties file from backing bean
 
Similar Threads
read a file for text file under WEB-INF
How to change the key=value pair of properties file dynamically
How to read a property file from WAR
Reading property files within a servlet
Intenationalization JSF using Tomcat & Eclipse