null
Return the action configuration for the specified path, if any; otherwise return null.
10551056105710581059106010611062106310641065
if ( _mapping == null && _mappingPath != null ) { ModuleConfig mc = fc.getModuleConfig(); assert mc != null : "no ModuleConfig found for " + fc.getClass().getName(); _mapping = ( ActionMapping ) mc.findActionConfig( _mappingPath ); } } /** * Tell whether the path is inherited from a path in a base class.
908909910911912913914915916917918
*/ public static ActionConfig findActionConfig( String actionConfigPath, String modulePath, ServletContext context ) { ModuleConfig moduleConfig = getModuleConfig( modulePath, context ); assert moduleConfig != null; return moduleConfig.findActionConfig( actionConfigPath ); } /** * Get the Struts ActionMapping path from the ActionMapping that is in the request under the key * Globals.MAPPING_KEY.
8182838485868788899091
ModuleConfig moduleConfig = factory.createModuleConfig(PACKAGE_NAME); assertNotNull(moduleConfig); assertEquals("/"+PACKAGE_NAME, moduleConfig.getPrefix()); ActionConfig actionConfig = moduleConfig.findActionConfig("/action1"); assertNotNull(actionConfig); assertEquals("/action1", actionConfig.getPath()); ActionConfig[] actionConfigs = moduleConfig.findActionConfigs(); assertNotNull(actionConfigs);
143144145146147148149150151152153
private boolean isTabRightsValid(Page tab) { boolean valid = false; ModuleConfig moduleConfig = (ModuleConfig)pageContext.getServletContext().getAttribute(Globals.MODULE_KEY); ActionConfig actionConfig = moduleConfig.findActionConfig(tab.getAction()); if(actionConfig != null) { Right[] rights = new Right[actionConfig.getRoleNames().length];
979899100101102103104105106107
{ if ( _mapping == null && _mappingPath != null ) { ModuleConfig mc = pfc.getModuleConfig(); assert mc != null : "no ModuleConfig found for " + pfc.getClass().getName(); _mapping = ( ActionMapping ) mc.findActionConfig( _mappingPath ); } if ( _forward != null && _forward instanceof Forward ) { ( ( Forward ) _forward ).reinitialize( pfc );
930931932933934935936937938939940
102510261027102810291030103110321033
if ( _mapping == null && _mappingPath != null ) { ModuleConfig mc = fc.getModuleConfig(); assert mc != null : "no ModuleConfig found for " + fc.getClass().getName(); _mapping = ( ActionMapping ) mc.findActionConfig( _mappingPath ); } } }
6768697071727374757677
456457458459460461462463464465466
jsFormName = formName; if(jsFormName.charAt(0) == '/') { String mappingName = StrutsUtils.getActionMappingName(jsFormName); ModuleConfig mconfig = ModuleUtils.getInstance().getModuleConfig(request, app); ActionConfig mapping = (ActionConfig) mconfig.findActionConfig(mappingName); if (mapping == null) { throw new NullPointerException("Cannot retrieve mapping for action " + mappingName); } jsFormName = mapping.getAttribute(); }
442443444445446447448449450451452
// Look up the application module configuration information we need ModuleConfig moduleConfig = lookupModuleConfig(context); // Look up the ActionConfig we are processing String action = getAction(); ActionConfig actionConfig = moduleConfig.findActionConfig(action); if (actionConfig == null) { throw new IllegalArgumentException("Cannot find action '" + action + "' configuration"); }