Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment:

Update formatting

Most often, the Action Mappings will be automatically reloaded if the WAR is redeployed. If not, there are two things you can try: Setting the reload property to true and destroying the configuration.

Setting Reload to True

Code Block
titleaction

If you are finding that the xwork configuration is not reloaded when you redeploy your war. Is there a way to tell webwork to unload its configuration when the context is destroyed.

Try to call

Code Block
com.opensymphony.xwork.config.ConfigurationManager.destroyConfiguration() 
Info
titleUseful Information

This should destroy the current configuration and perform a config reload on next request. You can use a action for do it.

another tip

This is another option that you can use, change for true.

Code Block
titlewebwork.properties
### Configuration reloading
### This will cause the configuration to reload xwork.xml when it is changed
webworkaction.configuration.xml.reload=false
true

Destroying the Configuration

Create a utility Action that calls

Code Block

com.opensymphony.xwork.config.ConfigurationManager.destroyConfiguration();

Invoking destryConfiguration should destroy the current configuration and force the configuration to be reloaded on next request (which you might want to make yourself!).