File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
I agree. Here's the link:
subject: includeProperties in Json struts2 plugin
It's not a secret anymore!