Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4FD1311279 for ; Tue, 8 Jul 2014 20:40:05 +0000 (UTC) Received: (qmail 44993 invoked by uid 500); 8 Jul 2014 20:40:05 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 44962 invoked by uid 500); 8 Jul 2014 20:40:05 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 44948 invoked by uid 99); 8 Jul 2014 20:40:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 20:40:05 +0000 Date: Tue, 8 Jul 2014 20:40:04 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (WW-4170) Allow String arrays/iterables to be passed as params to redirectAction result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart resolved WW-4170. ------------------------------- Resolution: Fixed It's supposed to be solved, {{ServletRediectResult#doExecute}} already support collections > Allow String arrays/iterables to be passed as params to redirectAction result > ----------------------------------------------------------------------------- > > Key: WW-4170 > URL: https://issues.apache.org/jira/browse/WW-4170 > Project: Struts 2 > Issue Type: Improvement > Components: Other > Affects Versions: 2.3.15.1 > Reporter: Jasper Rosenberg > Labels: result > Fix For: 2.3.18 > > > It would be really nice to be able to have a result like: > {code:xml} > > doit > ${actionMessages} > > {code} > Where actionMessages is the result of getActionMessages() from a ValidationAware action, and has more than one message. > And have that generate a url like: http://myco.com/doit.action?actionMessages=Message+1&actionMessages=Message+2 > Rather than convert the result into the toString of the collection which then can't be interpreted by struts on the other end as a collection. > Looking at ServletRedirectResult.doExecute(), it does use urlHelper.buildParametersString() which is array/iterable aware, so the trick would be to allow the parsing of the parameter value to be a String[] or Iterable (and have the ParsedValueEvaluator run against the contents). > We'd probably only want to support this functionality for the ServletActionRedirectResult even though it would have to be implemented at the ServletRedirectResult layer. -- This message was sent by Atlassian JIRA (v6.2#6252)