JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > FAQ > How to reload xwork configuration
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  How to reload xwork configuration
Added by scud, last edited by scud on Mar 30, 2006  (view change)
Labels: 
(None)

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

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

Useful 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.

webwork.properties
### Configuration reloading
### This will cause the configuration to reload xwork.xml when it is changed
webwork.configuration.xml.reload=false
Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators