struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvin Chew <alvincks...@gmail.com>
Subject Re: Struts2 and JSON
Date Tue, 07 Aug 2012 09:14:23 GMT
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 <frans@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" <alvincks727@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 !
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message