I had to subclass ForwardAction and force it to redirect.  Here's the code,
for anyone who needs it or cares:

public class RedirectAction extends ForwardAction {

    public ActionForward execute(ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response)
 throws Exception {
            ActionForward retVal = super.execute (mapping, form, request,
response);
            retVal.setRedirect (true); // there's the key part
            return retVal;
    }


}



----- Original Message -----
From: "Ian Hunter" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 10:11 AM
Subject: ForwardAction with redirect


> I saw a Bugzilla post from someone who needed to use ForwardAction but get
a
> redirect rather than a forward, and suggested implementing a
> RedirectAction -- did that ever get done?  How are folks handling this
> scenario?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to