public static File getViewFile(String namespace, String actionName, String resultName) { ResultConfig result = getResultConfig(namespace, actionName, resultName); String location = (String) result.getParams().get("location"); for (int i = 0; i < views.length; i++) { String viewRoot = views[i]; File viewFile = getViewFileInternal(viewRoot, location, namespace); if (viewFile != null) { return viewFile; } } return null; }
/** * Copies the specified result config. * * @param config The config to copy. * @return the copy. */ public static ResultConfig copyResultConfig( final ResultConfig config ) { return new ResultConfig( config.getName(), config.getClassName(), copyParams( config.getParams() ) ); }
ResultConfig resultConfig = (ResultConfig) invocation.getProxy().getConfig().getResults().get( invocation.getResultCode()); Map resultConfigParams = resultConfig.getParams(); for (Iterator i = resultConfigParams.entrySet().iterator(); i.hasNext(); ) { Map.Entry e = (Map.Entry) i.next();
|| resultClassName.indexOf("Velocity") != -1 || resultClassName.indexOf("Freemarker") != -1) { if (resultConfig.getParams().get("location") == null) { continue; String location = getViewLocation((String) resultConfig.getParams().get("location"), namespace); if (location.endsWith((String) Configuration.get(WebWorkConstants.WEBWORK_ACTION_EXTENSION))) { addTempLink(action, location, Link.TYPE_RESULT, resultConfig.getName()); String locationConfig = (String) resultConfig.getParams().get("location"); if (locationConfig == null) { locationConfig = (String) resultConfig.getParams().get("actionName");