• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Load message resources from external URL

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic