aspose file tools
The moose likes Struts and the fly likes How to make the struts2 JSON plugin work on List of custom object? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "How to make the struts2 JSON plugin work on List of custom object?" Watch "How to make the struts2 JSON plugin work on List of custom object?" New topic
Author

How to make the struts2 JSON plugin work on List of custom object?

Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 137
Good day,

I try doing a sample to understand how the Struts2 JSON plugin work and below is my code snippet:

My problem is that, mystring, myStringList are able to display out, but jSONShowList doesn't , it showing two empty pair of {}. I guess the records is being pull out but couldn't display out the result, any clue what did i miss out ?

Code :


JsonDataObject code :

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to make the struts2 JSON plugin work on List of custom object?
 
Similar Threads
Struts2-json plugin not serializing action class to json
LazyInitializationException [spring + struts2]
struts2 + json plugin problems
Handling Ajax response in struts2
struts2 + Json and JQuery.