I have a resource bundle file called "config.properties" that is created to store application settings. This file is created during runtime and values are provided by the user. I am retrieving one of these properties in my JSP in a fmt:message key (basically user controlled i18n string).
What I really want to be able to do is programmatically reload the this specific bundle when I save the file. I am not using struts.18n.reload or the like as I want this reload to happen ONLY when user saves new settings.
I am having no luck with the following code.
<code>
config = new PropertiesConfiguration(configFile);
FileChangedReloadingStrategy strategy = new FileChangedReloadingStrategy();
config.setReloadingStrategy(strategy);
config.save();
config.load();
</code>
There seemed to be some examples of ReloadableProperties but it seems they work on in Struts 1.
How do I force reloading of struts 2 bundles in code?