Thank you for your suggestion.  However, using

"features.*\.name"

still does not recognize the property - it is not included in the output. Likewise, removing the annotation does not help either.

--john

Musachy Barroso wrote:
exclude/include properties have to match the java name of the
properties, not the name in the output. Try using "features.*\.name"
as the regular expression.

musachy

On Fri, May 22, 2009 at 10:48 AM, John Cartwright
<john.c.cartwri...@noaa.gov> wrote:
Thanks for your reply Musachy.

I'm using the JSON annotation to modify the output, e.g.

@JSON(name="items")
public List<Feature> getFeatures() {
  return (features);
}

Yes, I am getting a result. It's just that all the fields are being output
rather than just the ones listed in the includeProperties.  As an aside, the
"excludeProperties" also seems to be ignored, but the
"excludeNullProperties" is respected.

Thanks again for your help!

--john

Musachy Barroso wrote:
There is a getItems() in your action right? Does anything get generated at
all?

musachy


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to