base/struts-tools/src/main/com/thesett/common/webapp/actions/RedirectAction.java
public ActionForward executeWithErrorHandling(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response, ActionErrors errors)
    {
        log.fine("public ActionForward performWithErrorHandling(ActionMapping mapping, ActionForm form," +
            "HttpServletRequest request, HttpServletResponse response, " + "ActionErrors errors): called");

        HttpSession session = request.getSession();
        DynaBean dynaForm = (DynaActionForm) form;

        // Redirect to the specified location
        String redirect = (String) dynaForm.get(REDIRECT);

        log.fine("redirect = " + redirect);

        return new ActionForward(redirect, true);
    }
public ActionForward executeWithErrorHandling(ActionMapping mapping, ActionForm form, HttpServletRequest request,
        HttpServletResponse response, ActionErrors errors)
    {
        log.fine("public ActionForward performWithErrorHandling(ActionMapping mapping, ActionForm form," +
            "HttpServletRequest request, HttpServletResponse response, " + "ActionErrors errors): called");

        HttpSession session = request.getSession();
        DynaBean dynaForm = (DynaActionForm) form;

        // Redirect to the specified location
        String redirect = (String) dynaForm.get(REDIRECT);

        log.fine("redirect = " + redirect);

        return new ActionForward(redirect, true);
    }
public ActionForward executeWithErrorHandling ( ActionMapping mapping , ActionForm form , HttpServletRequest request , HttpServletResponse response , ActionErrors errors ) { log . fine ( "public ActionForward performWithErrorHandling(ActionMapping mapping, ActionForm form," + "HttpServletRequest request, HttpServletResponse response, " + "ActionErrors errors): called" ) ; HttpSession session = request . getSession ( ) ; DynaBean dynaForm = ( DynaActionForm ) form ; // Redirect to the specified location String redirect = ( String ) dynaForm . get ( REDIRECT ) ; log . fine ( "redirect = " + redirect ) ; return new ActionForward ( redirect , true ) ; }
Handles an HTTP request sent to this action by struts. This simply forwards to the location specified by the
"redirect" request parameter.

@param  mapping  The Struts action mapping.
@param  form     The Struts form associated with this action.
@param  request  The HTTP request.
@param  response The HTTP response.
@param  errors   The Struts action errors object to place any errors in.

@return A forward to the "redirect" location.
Handles an HTTP request sent to this action by struts . This simply forwards to the location specified by the redirect request parameter .