Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

loading properties file from backing bean

 
Pamungkas Timotius
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!