Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Getting acknowledgment for an AJAX request

ManiKanta G

2008-09-23

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I m practicing AJAX in S2. And in response to my previous mail, Dave replied


> That's what Ajax does (loosely speaking): returns HTML fragments (or data as JSON, XML, etc.). That's the point of it--so you don't have to return entire pages and refresh the entire window.
>
> So, If I want to acknowledge some AJAX request (say, '2 new records has
been added') I just needed the count of how many rows got inserted/updated
successfully or a flag indicating the success or failure of the request.

And for this I m sure I don't need to return a jsp. How can be this done?
through JSON? if yes, can some one point me to some resource to learn using
JSON in S2?

Thanks in advance

ManiKanta
©2008 gg3721.com - Jax Systems, LLC, U.S.A.