You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/02/28 18:26:43 UTC
DO NOT REPLY [Bug 17536] New: -
ActionForward with redirect doesn�t work ....
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17536>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17536
ActionForward with redirect doesn�t work ....
Summary: ActionForward with redirect doesn�t work ....
Product: Struts
Version: 1.1 RC1
Platform: All
OS/Version: Other
Status: NEW
Severity: Critical
Priority: Other
Component: Controller
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: email@andrefrintrop.de
If i return in an action a new actionforward with url and redirect==true ( or
take a redirectingactionforward) the controller wants to access "/"+ the
redirecting url.
public class PayWagerAction
extends AuthorizedAction
{
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response, UserInfo userinfo)
{
// gets the session and payment/prognosis objects
HttpSession session = request.getSession();
try
{
InternetPayment payment = ...
payment.init();
return new ActionForward(payment.getRedirectURL(),true);
//response.sendRedirect(payment.getRedirectURL()); return null; <-- this
works !!!
}
catch (Exception e)
{
e.printStackTrace();
}
return mapping.findForward(Constants.FORWARD_FAIL);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org