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 2004/01/16 13:06:29 UTC
DO NOT REPLY [Bug 26192] New: -
forward element redirect and className attributes not honored
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=26192>.
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=26192
forward element redirect and className attributes not honored
Summary: forward element redirect and className attributes not
honored
Product: Struts
Version: Nightly Build
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Controller
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: darkeye@tyrell.hu
I'm trying to get a redirecting action forward to work, with the following
forward element within an action element:
<forward name="failure" path="/" redirect="true"/>
it seems that the redirect attribute is not honored, as the following code in
the corresponding action element:
ActionForward forward = mapping.findForward("failure");
System.err.println("--------redirect: " + forward.getRedirect());
will result in the output:
--------redirect: false
I also tried forcing the RedirectingActionForward class to be used with:
<forward name="failure" path="/" redirect="true"
className="org.apache.struts.action.RedirectingActionForward"/>
but it seems that the className attribute is not honored either, as the
following code:
ActionForward forward = mapping.findForward("failure");
System.err.println("--------redirect: " + forward.getRedirect());
System.err.println("--------class: " + forward.getClass());
will output:
--------redirect: false
--------class: class org.apache.struts.action.ActionForward
I'm using nightly build: jakarta-struts-20040113.tar.gz
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org