[ 
https://issues.apache.org/jira/browse/WW-4557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14982210#comment-14982210
 ] 

Lukasz Lenart edited comment on WW-4557 at 10/30/15 9:20 AM:
-------------------------------------------------------------

If this is a pure request (non-JSON) using {{someArray[]}} as a parameter name 
works only in PHP, because this specify param name not its type (the name is 
{{someArray[]}}). Normally it should be posted as 
{{?someArray=val1&someArray=val2}}


was (Author: lukaszlenart):
If this a pure request (non-JSON) using {{someArray[]}} as a parameter name 
works only in PHP, because this specify param name not its type (the name is 
{{someArray[]}}). Normally it should be posted as 
{{?someArray=val1&someArray=val2}}

> 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)

Reply via email to