[
https://issues.apache.org/jira/browse/WW-4684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15458555#comment-15458555
]
COMBEAU edited comment on WW-4684 at 9/2/16 1:43 PM:
-----------------------------------------------------
If I replace this :
<interceptor-ref name="json">
<param name="contentType">application/json</param>
</interceptor-ref>
by only this:
<interceptor-ref name="json"/>
It works but Ajax call doesn't! It against the same issue
I have try with :
$.ajax({
url:'jsondeserial.action',
type:"POST",
data:
{userLogin:'toto'},headers: {
Accept: "application/json; charset=utf-8",
"Content-Type": "application/json; charset=utf-8"
},
contentType:"application/json; charset=utf-8",
dataType:"json",
success: function(data){
}
});
In the JSONInterceptor I doesn't see accept equals to application/json
was (Author: walkn):
If I replace this :
<interceptor-ref name="json">
<param name="contentType">application/json</param>
</interceptor-ref>
by only this:
<interceptor-ref name="json"/>
It works but Ajax call doesn't! It against the same issue
> No set parameter value to action
> --------------------------------
>
> 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
> Fix For: 2.5.3
>
> Attachments: ActionSample.java, login.jsp, screenshot-1.png,
> 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)