public String getActionForwardClass() { return config.getActionForwardClass(); }
public Object createObject(Attributes attributes) { // Identify the name of the class to instantiate String className = attributes.getValue("className"); if (className == null) { ModuleConfig mc = (ModuleConfig) digester.peek(); className = mc.getActionForwardClass(); } // Instantiate the new object and return it Object globalForward = null; try { globalForward = RequestUtils.applicationInstance(className, cl); } catch (Exception e) { digester.getLogger().error("GlobalForwardFactory.createObject: ", e); } return globalForward; } }
public Object createObject(Attributes attributes) { // Identify the name of the class to instantiate String className = attributes.getValue("className"); if (className == null) { ModuleConfig mc = (ModuleConfig) digester.peek(1); className = mc.getActionForwardClass(); } // Instantiate the new object and return it Object actionForward = null; try { actionForward = RequestUtils.applicationInstance(className, cl); } catch (Exception e) { digester.getLogger().error("ActionForwardFactory.createObject: ", e); } return actionForward; } }
public Object createObject(Attributes attributes) { // Identify the name of the class to instantiate String className = attributes.getValue("className"); if (className == null) { ModuleConfig mc = (ModuleConfig) digester.peek(1); className = mc.getActionForwardClass(); } // Instantiate the new object and return it Object actionForward = null; try { actionForward = RequestUtils.applicationInstance(className); } catch (Exception e) { digester.getLogger().error( "ActionForwardFactory.createObject: ", e); } return actionForward; }
public Object createObject(Attributes attributes) { // Identify the name of the class to instantiate String className = attributes.getValue("className"); if (className == null) { ModuleConfig mc = (ModuleConfig) digester.peek(); className = mc.getActionForwardClass(); } // Instantiate the new object and return it Object globalForward = null; try { globalForward = RequestUtils.applicationInstance(className); } catch (Exception e) { digester.getLogger().error( "GlobalForwardFactory.createObject: ", e); } return globalForward; }
protected void addForwardConfig(ModuleConfig config, String path, ActionConfig actionConfig) { ForwardConfig forwardConfig = (ForwardConfig) ClassUtil.newInstance(config.getActionForwardClass()); forwardConfig.setName(Constants.SUCCESS); forwardConfig.setPath(path); actionConfig.addForwardConfig(forwardConfig); }
public ForwardConfig createActionForwardConfig(ModuleConfig config, Class actionClass, String name, StrutsActionForwardConfig actionForward) { ForwardConfig forwardConfig = (ForwardConfig) ClassUtil.newInstance(config.getActionForwardClass()); forwardConfig.setName(name); if (StringUtil.isEmpty(actionForward.path())) { forwardConfig.setPath(name); } else { forwardConfig.setPath(actionForward.path()); } if (StrutsActionForwardConfig.DEFAULT_REDIRECT != actionForward.redirect()) { forwardConfig.setRedirect(actionForward.redirect().booleanValue()); } return forwardConfig; }