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 2005/09/18 05:50:39 UTC
DO NOT REPLY [Bug 36698] New: -
Enhancements for ActionRedirect
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36698>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36698
Summary: Enhancements for ActionRedirect
Product: Struts
Version: 1.2.7
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: Standard Actions
AssignedTo: dev@struts.apache.org
ReportedBy: paul4christ79@yahoo.com
Now that Struts 1.2.7 supports the ActionRedirect class, I am constantly finding
myself coding this pattern:
ActionRedirect redirect = new ActionRedirect(mapping.findForward("name"));
Something simpler would be:
ActionRedirect redirect = mapping.findRedirect("name");
Now someone needs to debate the merit of this approach. Should this find any
forward and turn it into an ActionRedirect, or only find forwards that have the
@redirect set to true. I don't know. Let's discuss.
Also, I like to pass form attributes or request parameters from one request to
another. How about a shortcut to populate the parameters like:
redirect.addRequestParameters(request);
redirect.addFormAttributes(form);
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org