Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 97828 invoked from network); 25 Apr 2006 19:01:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 19:01:25 -0000 Received: (qmail 51472 invoked by uid 500); 25 Apr 2006 19:01:08 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 51401 invoked by uid 500); 25 Apr 2006 19:01:08 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 51351 invoked by uid 99); 25 Apr 2006 19:01:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 12:01:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 12:01:06 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B19F3714292 for ; Tue, 25 Apr 2006 19:00:45 +0000 (GMT) Message-ID: <4568100.1145991645724.JavaMail.root@brutus> Date: Tue, 25 Apr 2006 19:00:45 +0000 (GMT+00:00) From: "David Evans (JIRA)" To: dev@struts.apache.org Subject: [jira] Closed: (STR-72) Clean Way to Add Parameters to Redirecting Forward MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/struts/browse/STR-72?page=all ] David Evans closed STR-72: -------------------------- Resolution: Fixed > 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: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org