Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 39437 invoked from network); 22 Dec 2007 02:38:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Dec 2007 02:38:59 -0000 Received: (qmail 21509 invoked by uid 500); 22 Dec 2007 02:38:39 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 21498 invoked by uid 500); 22 Dec 2007 02:38:39 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 21486 invoked by uid 99); 22 Dec 2007 02:38:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 18:38:39 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of realghost819@gmail.com designates 72.14.220.157 as permitted sender) Received: from [72.14.220.157] (HELO fg-out-1718.google.com) (72.14.220.157) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Dec 2007 02:38:17 +0000 Received: by fg-out-1718.google.com with SMTP id e21so268629fga.9 for ; Fri, 21 Dec 2007 18:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=J8t5opi6kZ4mSSjprZXYgTXi792f6h8RUq7D6qWL+cw=; b=WzpbfCWo02tAcmNE0pw/RFgIrILfVO9B4dk3PL9w0sUs5VyXbADnmzz/kpZnTmGt7BkdKJywrbSva6eeabWt5CIfspavK//T2LZXTqp6BKfpKnaBo3XdpB1AaaElDmjsa1d3oDhC9pW9IApBB9YU+LdvA+UK/w2tVE0URR5f/oI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kCknYh3NtiDgt6vFzF7rfgZDc+CBgzQe2oOe/yi2fWBrsK0L6fheC87mVfx0DMdQDElOwT/Hmh57h5gIxZ7pvRvPRcZTHJt/nWpoah7zVutJ6Q/RTH6D07Uw56csrEgbs9d94YaLj12sX9cFh/H9fTzRTxwDmrI4OROX+4sNpLQ= Received: by 10.82.181.7 with SMTP id d7mr3457186buf.4.1198291100088; Fri, 21 Dec 2007 18:38:20 -0800 (PST) Received: by 10.82.172.18 with HTTP; Fri, 21 Dec 2007 18:38:15 -0800 (PST) Message-ID: <4de972400712211838j41a12811h5688d69339782da3@mail.gmail.com> Date: Sat, 22 Dec 2007 10:38:15 +0800 From: joey To: "Struts Users Mailing List" Subject: Re: JSON and ExtJS In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <303550.18405.qm@web88201.mail.re2.yahoo.com> <4de972400712202003w3e1b5b17i843722615220e11e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ExtJS script submit code is sth like this : fs.submit({url:'save.action', waitMsg:'Saving Data...'}); ExtJS form submit action is an xhr request to your form url,You just handle it in struts2 as you did in a normal html form.But your response must have the same format with your extjs form reader.I uses json.so my respone is sth like this: {"success":true,"errmsg":"","datas":[]},success property is required.if it is true,extjs form will call actioncompleted method,otherwise call actionfailed method. On Dec 22, 2007 9:08 AM, Frans Thamura wrote: > just a little another question > > i try to use JSON as the communication between S2 and my ExtJS Apps > > but I can see we can use Form in ExtJS to replace the Form in HTML > > i still dont get how to develop a good JSON based S2, and also the good > ExtJS apps in the client > > esp i am very weak in JSON RPC world, > > still dont get how to save S2 - JSON. > > in another world I am developng a framework in Swing based, and want to use > JSON > > and since today, I can read the output of S2, but cannot send data and save > to S2. > > any glue guys > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org