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 8326D10AAA for ; Wed, 30 Apr 2014 09:49:29 +0000 (UTC) Received: (qmail 56612 invoked by uid 500); 30 Apr 2014 09:49:29 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 55615 invoked by uid 500); 30 Apr 2014 09:49:20 -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 55103 invoked by uid 99); 30 Apr 2014 09:49:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2014 09:49:15 +0000 Date: Wed, 30 Apr 2014 09:49:15 +0000 (UTC) From: "Gautham (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (WW-4336) Action tag does not process list type parameters correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Gautham created WW-4336: --------------------------- Summary: Action tag does not process list type parameters correctly Key: WW-4336 URL: https://issues.apache.org/jira/browse/WW-4336 Project: Struts 2 Issue Type: Bug Components: Core Actions, Plugin - Tags Affects Versions: 2.3.15.3 Reporter: Gautham Hello Everyone. While migrating application from struts 2.0.11 to 2.3.15.x encountered below issue - There is a list of objects available in a jsp, within which an action is invoked ( using s:action tag ) and that list is passed down for use in the callee action (this is being done to populate a table). This approach worked with struts 2.0.11, but with 2.3.15 - the list is being converted to string first before being passed to the callee action and is unusable by the time its received. With some debugging, figured out this piece of code was doing the conversion to string.. ActionComponent.createParametersForContext() String key = (String) entry.getKey(); Object val = entry.getValue(); if (val.getClass().isArray() && String.class == val.getClass().getComponentType()) { params.put(key, (String[])val); } else { params.put(key, new String[]{val.toString()}); } relevant code snippet in jsp looks like this Is this an intended change in behavior ? I couldn't find relevant details in the release notes or the migration guide. What's the recommended approach to migrate such components ? -- This message was sent by Atlassian JIRA (v6.2#6252)