Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 80942 invoked from network); 3 Oct 2007 10:42:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 10:42:56 -0000 Received: (qmail 65185 invoked by uid 500); 3 Oct 2007 10:42:36 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 65149 invoked by uid 500); 3 Oct 2007 10:42:36 -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 65138 invoked by uid 99); 3 Oct 2007 10:42:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 03:42:35 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antonio.petrelli@gmail.com designates 66.249.82.226 as permitted sender) Received: from [66.249.82.226] (HELO wx-out-0506.google.com) (66.249.82.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 10:42:38 +0000 Received: by wx-out-0506.google.com with SMTP id s14so687844wxc for ; Wed, 03 Oct 2007 03:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=KsIhA96mPyF10MRS2Ha1y6sLweTAQrySPGYBtX766+4=; b=OgOd8c1G0Aen2Nku5CW941I4QEFGDlY9m6Q5kHEPBZdJD64vAuN3UCw0hcAutdF64jG/kmSZ5+WHBkMpthWsICzUY8pCggAAE+aTLsM4egr4Or7sc0cFzr1/+c5e5Bea0J3gExne01iKwwHfhNcF2Zz8FdgqgqtjJeXoagEwbjk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=F9om4NhsW1YZ6xRooUBEsU+5M6zVTvPK4yh1gbfvsRgIxRd+UIHLyJhsBmOD2anHKOPFLVtKjM1Px0h0UQX/MSta/uyw8cf0c1W1U3oaSFz3m1jdCVWA3Tb7y+0TlINkjaHwH0aErbzkzIgpXd8rajUpep8vSwH0ZLT7ToO3/vw= Received: by 10.142.100.1 with SMTP id x1mr490114wfb.1191408136394; Wed, 03 Oct 2007 03:42:16 -0700 (PDT) Received: by 10.142.216.19 with HTTP; Wed, 3 Oct 2007 03:42:16 -0700 (PDT) Message-ID: Date: Wed, 3 Oct 2007 12:42:16 +0200 From: "Antonio Petrelli" To: "Struts Users Mailing List" Subject: Re: Session scoped ActionForm causing strange behaviour In-Reply-To: <13016312.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5702_12249073.1191408136393" References: <13016312.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_5702_12249073.1191408136393 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/10/3, Ramita Gambhir : > > I integrated Struts with Ajax using DWR. For that I had to put the > ActionForm in session scope. Why do you need to put it into session? Now I am facing a strange problem. > > When I change some values in the form, they are saved(marshalled) properly > at the backend(an XML file). But in the JSP, it shows old values only. > I suspect this is happening because of session scoped ActionForm. Your suspect is right! The action form is persisted across the requests. What's the basic difference between request-scoped and session-scoped form > objects? That session scoped form objects are stored in session, so you don't clear it after the end of the request. Immediate help is needed... You get immediate help only if you pay someone... :-) Antonio ------=_Part_5702_12249073.1191408136393--