You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2016/09/05 10:31:20 UTC

[jira] [Resolved] (WW-4684) Parameters not set to action when posting JSON

     [ https://issues.apache.org/jira/browse/WW-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart resolved WW-4684.
-------------------------------
    Resolution: Fixed
      Assignee: Lukasz Lenart

Done, I have reverted to the previous behaviour with {{Content-Type}} and basically you don't have to override {{Content-Type}} definition in the interceptor.

Here is small example how to use JSON plugin in both directiorns:
https://github.com/apache/struts-examples/tree/master/json

And added some notes to docs
https://cwiki.apache.org/confluence/display/WW/JSON+Plugin#JSONPlugin-AcceptingJSON

> Parameters not set to action when posting JSON
> ----------------------------------------------
>
>                 Key: WW-4684
>                 URL: https://issues.apache.org/jira/browse/WW-4684
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.5.2
>         Environment: Windows
>            Reporter: COMBEAU
>            Assignee: Lukasz Lenart
>             Fix For: 2.5.3
>
>         Attachments: ActionSample.java, login.jsp, screenshot-1.png, struts-2.3.28.xml, struts.properties, struts.xml
>
>
> I have an issue on my webapp since I have update Struts 2 to version 2.5.2 from 2.3.28.
> When I post a form with parameters via ajax call, on the action class setters are not called. All the time the setter and getter return "null" value
> I used Struts2-core and struts2-json-plugin



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)