It's not a secret anymore!
The moose likes Struts and the fly likes includeProperties in Json struts2 plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "includeProperties in Json struts2 plugin" Watch "includeProperties in Json struts2 plugin" New topic

includeProperties in Json struts2 plugin

Shak Smith

Joined: Feb 19, 2010
Posts: 12

I'm using the following to retrieve the bean in json.

But it is not retrieving all the properties of the user bean (like id, firstName, etc). Do I have to do something else for achieving this??
When I use <param name="root">user</param> then it works but I can't use the "excludeProperties" param
Please help!!
David Newton

Joined: Sep 29, 2008
Posts: 12617

Without knowing anything else, it's impossible to help. Please include the rest of the action configuration and possibly the bean source.
Have you checked out Aspose?
subject: includeProperties in Json struts2 plugin
jQuery in Action, 3rd edition