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