You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

ConfigurationProvider is an interface that determines Struts2 Configuration. Struts2 loads its configurations through an xml by using StrutsXmlConfigurationProvider. This is configurable through Dispatcher's DispatcherListener. See here for more info regarding DispatcherListener.

Example

 static {
   Dispatcher.addDispatcherListener(new DispatcherListener() {
     ....
     public void dispatcherInitialized(Dispatcher du) {
         ConfigurationManager confManager = du.getConfigurationManager();
         confManager.addConfigurationProvider( ... );
     }
     ....
   });
 }
  • No labels