null
Return the action configuration for the specified path, if any; otherwise return null.
460461462463464465466467468469470
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(); }
285286287288289290291292293294295
if (!linkString.startsWith("/")) { linkString = "/" + linkString; } SecureActionConfig secureConfig = (SecureActionConfig)moduleConfig. findActionConfig(linkString); return secureConfig; } return null;
3334353637383940414243
// Identify the matching path for this request String path = getPath(actionCtx); // Cache the corresponding ActonConfig instance ModuleConfig moduleConfig = actionCtx.getModuleConfig(); ActionConfig actionConfig = moduleConfig.findActionConfig(path); if (actionConfig == null) { // NOTE Shouldn't this be the responsibility of ModuleConfig? // Locate the mapping for unknown paths (if any) ActionConfig[] configs = moduleConfig.findActionConfigs();