On Sunday 12 July 2009 03:49:54 pm GF wrote: > Hello all, > i wrote a simple guide that explains how to use together Struts2 and > JQuery to create dynamic content with Ajax and JSON. > > http://www.zulutown.com/blog/2009/07/12/ajax-dynamic-content-with-struts2-j >query-and-json-plugin/ > > I hope someone can appreciate it >
A quick look at your tutorial makes me think you are underestimating the capability of the JSON plugin. It is fully capable of serializing most java objects to JSON. Rather than explicitly creating a hashmap, why not put the 'item' on the action and then set a json result with item configured as the root object. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org