Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic