THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
### Configuration reloading ### This will cause the configuration to reload struts.xml when it is changed struts.configuration.xml.reload=true |
...
Reloading the Configuration
Create a utility Action that calls destroyConfiguration
reload
.
Code Block | ||
---|---|---|
| ||
// ... String execute() { comDispatcher.opensymphony.xwork.config.ConfigurationManager.destroyConfigurationgetIntance().getConfigurationManager().reload(); return SUCCESS; } |
Invoking destryConfiguration
should destroy the current configuration and force the configuration to be reloaded on next request (which you might want to make yourself!) reload
will force Struts to reload the configuration.