Here the post:

Hallo all. I have a problem with the struts-json-plugin.

My action has an association with some JPA entities objects: all of them are
initialized in the action but when they are serialized via json they all are
null.

Here below is the json text that I receive in front of a

...
private List<Beneficiario> beneficiari of 5 elements.
private String idBeneficiario = "id";
private User user = new User("mazi");
...

{"beneficiari":[null,null,null,null,null],
"idBeneficiario":"id","user":{"name":"Mazi"}}

All the properties have the right getter. Beneficiario is a JPA entity, User
not.

Any ideas?

Kind regards Massimo

On Thu, Mar 31, 2011 at 3:57 PM, Dave Newton <davelnew...@gmail.com> wrote:

> Perhaps posting the question here would be of value.
>
> Dave
>
> On Thu, Mar 31, 2011 at 9:34 AM, Massimo Ugues <m.ug...@gmail.com> wrote:
> > Hallo all.
> > I have a strange issue described here:
> >
> http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity
> >
> > <
> http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity
> >Any
> > idea?
> > Kind regards
> >
> > Massimo
> >
> > --
> > Massimo Ugues
> > http://m4zi.wordpress.com/
> > jabber: m.ug...@gmail.com
> > skype: m.ugues
> >
>



-- 
Massimo Ugues
http://m4zi.wordpress.com/
jabber: m.ug...@gmail.com
skype: m.ugues

Reply via email to