• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Load message resources from external URL

 
Gerard Grootten
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic