wood burning stoves*
The moose likes Struts and the fly likes Load message resources from external URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Load message resources from external URL" Watch "Load message resources from external URL" New topic
Author

Load message resources from external URL

Gerard Grootten
Greenhorn

Joined: Apr 16, 2008
Posts: 1
Is it possible to load properties files (e.g. messages_en.properties) from an external location?

I was able to get this working when the property file is located on my local workspace but now I want to load this file from e.g. www.google.com/messages_en.properties

I think I have to override some files.

I currently have the following files and was not able to set parameter="com.myapp.resources.ApplicationResources" to parameter="www.google.com/messages"

Update:
When I comment the line "pc.setReloadingStrategy(new FileChangedReloadingStrategy());" and add

then it does work but why do I get a nullpointer on the line with "pc.setReloadingStrategy(new FileChangedReloadingStrategy());" ???


Struts Config:






[ April 16, 2008: Message edited by: Gerard Grootten ]

[ April 16, 2008: Message edited by: Gerard Grootten ]
[ April 16, 2008: Message edited by: Gerard Grootten ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Load message resources from external URL
 
Similar Threads
message-resources reload
HIbernate-UnsupportedoperationException
Changing Locales problem
Is this the correct way of doing this
Get rid of line numbers