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