wood burning stoves 2.0*
The moose likes Struts and the fly likes How to receive json data in request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to receive json data in request" Watch "How to receive json data in request" New topic
Author

How to receive json data in request

Randy Meyer
Greenhorn

Joined: Sep 23, 2011
Posts: 2
Hello,

I am using Struts 2 with Extjs 4.x using the MVC pattern. I have had good success so far but I am currently stuck. I cannot figure out how to define my variable in my action class so it is populated on a request. This is the request payload from the client as seen in the Chrome Network debugger:



Here is the action class variable


This is the struts xml entry:


I hit the correct method in the action class but my variable is not set. I read this json plugin but cannot figure it out.

Thank you for any help.
-Randy
Randy Meyer
Greenhorn

Joined: Sep 23, 2011
Posts: 2
Hi everyone,

Does anyone have any ideas here? Really appreciate any help.

thank you
-Randy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to receive json data in request
 
Similar Threads
How to print java Map name/value pair through JSON object in JS
Struts2-json plugin not serializing action class to json
Error DefaultActionInvocation
struts2 (2.1.8.1) json result type problems
Custom result type reference is causing my deploy to fail