/** * <p>Construct a new instance with the specified path * and initialize parameter lists.</p> * * @param path Path for this instance */ public ActionRedirect(String path) { super(path); setRedirect(true); initializeParameters(); }
/** * <p>Construct a new instance with redirect set to true * and initialize parameter lists.</p> */ public ActionRedirect() { setRedirect(true); initializeParameters(); }
/** * <p>Construct a new instance with the specified path.</p> * * @param path Path for this instance */ public RedirectingActionForward(String path) { super(); setName(null); setPath(path); setRedirect(true); }
/** * <P>Construct a new instance with the specified path.</p> * * @param path Path for this instance */ public ForwardingActionForward(String path) { super(); setName(null); setPath(path); setRedirect(false); }
/** * <p>Construct a new instance with the specified * <code>path</code> and <code>redirect</code> flag.</p> * * @param path Path for this instance * @param redirect Redirect flag for this instance */ public ActionForward(String path, boolean redirect) { super(); setName(null); setPath(path); setRedirect(redirect); }
/** * Construct a new instance with the specified values. * * @param name Name of this forward * @param path Path to which control should be forwarded or redirected * @param redirect Should we do a redirect? */ public ForwardConfig(String name, String path, boolean redirect) { super(); setName(name); setPath(path); setRedirect(redirect); }
/** * Construct a new instance with the specified values. * * @param name Name of this forward * @param path Path to which control should be forwarded or * redirected * @param redirect Should we do a redirect? */ public ForwardConfig(String name, String path, boolean redirect) { super(); setName(name); setPath(path); setRedirect(redirect); }
/** * <p>Construct a new instance with the specified <code>name</code>, * <code>path</code> and <code>redirect</code> flag.</p> * * @param name Name of this instance * @param path Path for this instance * @param redirect Redirect flag for this instance */ public ActionForward(String name, String path, boolean redirect) { super(); setName(name); setPath(path); setRedirect(redirect); }
/** * Construct a new instance with the specified values. * * @param name Name of this forward * @param path Path to which control should be forwarded or redirected * @param redirect Should we do a redirect? * @param contextRelative Is this path context relative? * @deprecated Use module rather than contextRelative */ public ForwardConfig(String name, String path, boolean redirect, boolean contextRelative) { super(); setName(name); setPath(path); setRedirect(redirect); setContextRelative(contextRelative); }
/** * <p>Construct a new instance with the specified values.</p> * @param name Name of this forward * @param path Path to which control should be forwarded or redirected * @param redirect Should we do a redirect? * @param module Module prefix, if any */ public ForwardConfig(String name, String path, boolean redirect, String module) { super(); setName(name); setPath(path); setRedirect(redirect); setModule(module); }
/** * Construct a new instance with the specified values. * * @param name Name of this forward * @param path Path to which control should be forwarded or redirected * @param redirect Should we do a redirect? * @param module Module prefix, if any */ public ActionForward(String name, String path, boolean redirect, String module) { super(); setName(name); setPath(path); setRedirect(redirect); setModule(module); }
/** * <p>Construct a new instance with the specified values.</p> * * @param name Name of this instance * @param path Path for this instance * @param redirect Redirect flag for this instance * @param contextRelative Context relative flag for this instance * @deprecated Use module rather than contextRelative */ public ActionForward(String name, String path, boolean redirect, boolean contextRelative) { super(); setName(name); setPath(path); setRedirect(redirect); setContextRelative(contextRelative); }
/** * <p>Construct a new instance with the specified values.</p> * * @param name Name of this forward * @param path Path to which control should be forwarded or * redirected * @param redirect Should we do a redirect? * @param module Module prefix, if any */ public ForwardConfig(String name, String path, boolean redirect, String module) { super(); setName(name); setPath(path); setRedirect(redirect); setModule(module); }
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; }
/** * <p>Construct a new instance with a {@link ForwardConfig} object * to copy name, path, and contextRelative values from.</p> * * @param baseConfig the {@link ForwardConfig} * to copy configuration values from */ public ActionRedirect(ForwardConfig baseConfig) { setName(baseConfig.getName()); setPath(baseConfig.getPath()); setContextRelative(baseConfig.getContextRelative()); setModule(baseConfig.getModule()); setRedirect(true); initializeParameters(); }
setRedirect(config.getRedirect());
cfg.setName(fConfigs[x].getName()); cfg.setPath(convertParam(fConfigs[x].getPath(), vars)); cfg.setRedirect(fConfigs[x].getRedirect()); config.removeForwardConfig(fConfigs[x]); config.addForwardConfig(cfg);
cfg.setRedirect(fConfigs[x].getRedirect()); cfg.setCommand(convertParam(fConfigs[x].getCommand(), vars)); cfg.setCatalog(convertParam(fConfigs[x].getCatalog(), vars));