Thanks Buddy for the advice!

It required no extra library for Struts2, what i really miss is the custom
object which have only the contructors with signature but no getter method
:(

On Tue, Aug 7, 2012 at 7:33 AM, Frans Thamura <fr...@meruvian.org> wrote:

> You can use rest plugina
>
> Automatic become json
>
> We modify the rest plugins for make it full rest.
>
> S2restplugins.java.net
>
> F
> On Aug 7, 2012 6:30 AM, "Alvin Chew" <alvincks...@gmail.com> wrote:
>
> > Good day,
> >
> >
> > If we have a collection like a list of custom object need to send back to
> > page via ajax, do we need to used a json library like GSON to convert the
> > list into string and before return from Struts2 since we already have
> > return type "json" ?
> >
> > Between, any chance on sample how to handle a collection turn into json
> > before send back to page, when i try that, it give me numbers of empty
> pair
> > "{}" showing in page only.
> >
> > Thank you !
> >
>

Reply via email to