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 365F418D9A for ; Mon, 26 Oct 2015 06:45:28 +0000 (UTC) Received: (qmail 8277 invoked by uid 500); 26 Oct 2015 06:45:28 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 8237 invoked by uid 500); 26 Oct 2015 06:45:27 -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 8227 invoked by uid 99); 26 Oct 2015 06:45:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2015 06:45:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BD2872C1F57 for ; Mon, 26 Oct 2015 06:45:27 +0000 (UTC) Date: Mon, 26 Oct 2015 06:45:27 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4557) Posting array with ajax 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-4557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14973817#comment-14973817 ] Lukasz Lenart commented on WW-4557: ----------------------------------- Can you post the actual JSON? > Posting array with ajax > ----------------------- > > Key: WW-4557 > URL: https://issues.apache.org/jira/browse/WW-4557 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions, Plugin - JSON > Affects Versions: 2.3.16.3 > Environment: JDK 1.7 > Reporter: Q > Priority: Critical > > Our ui developers are posting json to our actions and when I look at the console in Chrome the data posted looks like > someArray[]:value1 > They do this post via an ajax post using jQuery. > I have a method someArray( String[] someArray) but that's never called. I insisted that I'd get the data as someArray[0]:value1 one but they think that is not necessary and the current way should work just fine. > Anyidea how to make the call work ? Is this a bug ? Is the way they post the data incorrect ? -- This message was sent by Atlassian JIRA (v6.3.4#6332)