struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36698] New: - Enhancements for ActionRedirect
Date Sun, 18 Sep 2005 03:50:39 GMT
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


Mime
View raw message