You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mitch Claborn <mi...@claborn.net> on 2009/08/04 01:19:40 UTC

dojo form submit and json

I have a working page that using the <sx:submit targets="divname" /> 
tag to submit a form and put the output as html into a div.

I'd like to "upgrade" that so that the action can return a JSON object
and then take some more specific responses in the page depending on the
contents of the JSON.  Need some pointers on how to get started.  I
think I understand the JSON plugin on the server side, how to serialize
a response Object into JSON.

What do I need to do in the view to de-serialize the results into JSON
and make them available in javascript?



Mitch



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org