public ActionForward findForward(String name) { ActionForward actionForward = new ActionForward(); actionForward.setName(name); actionForward.setPath("/" + name + ".html"); return actionForward; }
/** * <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); }
/** * <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); }
private ActionForward forward(HttpServletRequest request, String windowLocation) { final ActionForward actionForward = new ActionForward(); actionForward.setName(windowLocation); actionForward.setPath(windowLocation); actionForward.setRedirect(true); return actionForward; }
/** * <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 ActionForward(String name, String path, boolean redirect, String module) { super(); setName(name); setPath(path); setRedirect(redirect); setModule(module); }