struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Struts2 and JSON
Date Mon, 06 Aug 2012 23:32:20 GMT
Without any code or config it's impossible to diagnose why the JSON plugin
isn't doing it automatically.

Dave

On Mon, Aug 6, 2012 at 7:30 PM, 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 !
>



-- 
e: davelnewton@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits Blog <http://buckybits.blogspot.com/>

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