You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Aymeric Alibert <Ay...@alliantenergy.com> on 2002/08/20 23:21:47 UTC

ActionForward bug and Struts 1.1-b2

Hi All,

In my action class, when I create an ActionForward object using an absolute path, Struts does not forward to the proper page.

The following code is working in Struts 1.1-b1:

public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest req, HttpServletResponse res) {

    ...
    RedirectingActionForward redirect = new RedirectingActionForward("http://localhost:8080/myapp/home.do");
    return redirect;
}

In Struts 1.1-b2, the same code tries to redirect to http://localhost:8080/myapp/http:/localhost:8080/myapp/home.do

I had the same problem when using regular ActionForward instead of RedirectingActionForward.

Any suggestion?

Thanks,
Aymeric.