Two Laptop Bag*
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
Author

includeProperties in Json struts2 plugin

Shak Smith
Greenhorn

Joined: Feb 19, 2010
Posts: 12
Hello,

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

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: includeProperties in Json struts2 plugin