Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 91595 invoked from network); 9 Nov 2005 17:25:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Nov 2005 17:25:10 -0000 Received: (qmail 14816 invoked by uid 500); 9 Nov 2005 17:24:58 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 14801 invoked by uid 500); 9 Nov 2005 17:24:58 -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 14790 invoked by uid 99); 9 Nov 2005 17:24:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 09:24:58 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jmikus@gmail.com designates 66.249.82.207 as permitted sender) Received: from [66.249.82.207] (HELO xproxy.gmail.com) (66.249.82.207) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 09:24:51 -0800 Received: by xproxy.gmail.com with SMTP id t15so203033wxc for ; Wed, 09 Nov 2005 09:24:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hjRK41gzM7zWr0UW2KOr9Sp+iXAesXTP3RRb1KOWFBQdp90J67iyVOSfHFf0WKrdRgPLJ68mtB92Xj0VyufbKwT9ZcRkOPQVqiB9SLky/Pek3Zh337lMukWXmiryNmCirLW5vNc4XI0LoH0kIfzyKkciFB9rhYMtQE9dIdX+QeY= Received: by 10.65.218.2 with SMTP id v2mr1043759qbq; Wed, 09 Nov 2005 09:24:36 -0800 (PST) Received: by 10.64.142.10 with HTTP; Wed, 9 Nov 2005 09:24:36 -0800 (PST) Message-ID: <1db115340511090924ie301d21ud9c29caf735becab@mail.gmail.com> Date: Wed, 9 Nov 2005 09:24:36 -0800 From: Michael Jouravlev To: Struts Users Mailing List Subject: Re: Can one Action Method POST to another? In-Reply-To: <565179e00511090902q69cca29djd8329f991b594759@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <565179e00511090902q69cca29djd8329f991b594759@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 11/9/05, sudip shrestha wrote: > I have situation here where one action method need to do a POST to anothe= r > method of a DispatchAction implementing class. I need to know if this is > possible. Redirect with 307 code. HttpResponse.sendRedirect() sets response header to 302 by default and you cannot change header after response was written, so you need to forge response with proper header yourself. Most modern browsers understand 307 response, it is defined in HTTP 1.1 spec (1999, baby!) See details here: http://ppewww.ph.gla.ac.uk/%7Eflavell/www/post-redirect.h= tml Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org