public String getModuleConfPath ( String modulePath ) { if ( _moduleConfigLocators != null ) { for ( int i = 0 ; i < _moduleConfigLocators . length ; ++ i ) { ModuleConfigLocator locator = _moduleConfigLocators [ i ] ; String moduleConfigPath = locator . getModuleConfigPath ( modulePath ) ; try { if ( getConfigResource ( moduleConfigPath ) != null ) return moduleConfigPath ; } catch ( MalformedURLException e ) { _log . error ( "ModuleConfigLocator " + locator . getClass ( ) . getName ( ) + " returned an invalid path: " + moduleConfigPath + ' ' , e ) ; } } } return null ; }
Get the webapp - relative path to the Struts module configration file for a given module path based on registered ModuleConfigLocators .