This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
how to, JSON data
Struts 2 and JSON
Tomcat 5.5 SEVERE: Error listenerStart
Create new params in results struts.xml
Struts2 mapping query