[ http://issues.apache.org/struts/browse/STR-72?page=all ]
     
David Evans reopened STR-72:
----------------------------


> Clean Way to Add Parameters to Redirecting Forward
> --------------------------------------------------
>
>          Key: STR-72
>          URL: http://issues.apache.org/struts/browse/STR-72
>      Project: Struts Action 1
>         Type: Improvement

>   Components: Extras
>     Versions: Nightly Build
>  Environment: Operating System: All
> Platform: PC
>     Reporter: Mike McCallister
>     Assignee: Don Brown
>     Priority: Minor
>      Fix For: 1.2 Family
>  Attachments: Action.java.patch, ActionRedirect.java, ActionRedirect.java, 
> ActionRedirect.java, ControllerConfig.java.patch, Globals.java.patch, 
> RequestProcessor.java.patch, StrutsUtil.java, TestActionRedirect.java, 
> TestActionRedirect.java, TestActionRedirect.java, 
> TestActionRedirect.properties, TestActionRedirect2.properties, 
> build-tests.xml.patch, struts-config_1_2.dtd.patch
>
> It would be nice if ActionForward provided a clean way to attach URL encoded 
> parameters (for when the forward mapping of "success" has redirect="true").  
> Here is what I do now:
>     StringBuffer newPath =
>         new StringBuffer(mapping.findForward("success").getPath());
>     newPath.append("?coreId=");
>     newPath.append(ResponseUtils.filter(reqform.getCoreId()));
>     return (new ActionForward(newPath.toString(), true));
> It would be nice if something like this was possible instead:
>     return (mapping.findForward("success").addParameter("coreId",
>                                                         reqform.getCoreId()));

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to