Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4557

Posting array with ajax

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.16.3
    • Fix Version/s: 2.3.28
    • Component/s: Core Actions, Plugin - JSON
    • Labels:
      None
    • Environment:

      JDK 1.7

      Description

      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 ?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              theqmaster Q
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: