struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andras Balogh <and...@reea.net>
Subject Re: [S2] json-plugin: includeProperties being ignored?
Date Mon, 02 Mar 2009 06:52:03 GMT
Hi,

    Try to specify the includeProperties at the
<interceptor-ref name="json" > definition and not at the result type.

BR,
Andras

John.C.Cartwright@noaa.gov wrote:
> Hello All,
>
> I'm having trouble getting the json-plugin 0.32 to behave as I'd
> expected.  The action is exposing a List of objects annotated as
> "@JSON(name="items")" in the action.
>
> I have my result configured as:
> <result type="json">
>             <param name="excludeNullProperties">true</param>
>             <param name="includeProperties">
>             items.*\.name
>             </param>
>          </result>
>
> However the returned JSON has all of the properties for the objects in
> the list.  Can someone please help me with what I'm doing wrong?
>
> Thanks!
>
> --john
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>   


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


Mime
View raw message