Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 35028 invoked from network); 1 Mar 2010 07:22:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 07:22:00 -0000 Received: (qmail 37350 invoked by uid 500); 1 Mar 2010 07:21:58 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 37328 invoked by uid 500); 1 Mar 2010 07:21: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 37320 invoked by uid 99); 1 Mar 2010 07:21:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 07:21:58 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [87.248.114.232] (HELO web24505.mail.ird.yahoo.com) (87.248.114.232) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 01 Mar 2010 07:21:49 +0000 Received: (qmail 8857 invoked by uid 60001); 1 Mar 2010 07:21:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1267428087; bh=jEqcLAEX/CDlMT7x5tVVj1K3FcuSha3RvfylyjQBqCA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pZWMzefhURRRfWUKDcHcZcIj82XOM2arDTWAmCl/nB8AyQwnPjN6zKEabP/ZTpQ8kWDQz2fhfZYH7k1UqovNQyeUuu2BmH8fAO768PsJlL+DycCCJLDHXW0Ri7lz0BkenUuHjF5s5s+SWWAzN8KA5nc70pNxTqvEO+8XR+KYvIk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=c703uEnnn7SfmPvqTw6nczD0kh+OXRYG/2MusobFgbMJ8IqDWFY2IqITWa21XXYgEa+C6oMUQDj9JpPiJ5gVV6l4eA1Wyz6qYj2AzDDLlMRNQhzN9m6wnGZFyZFNgormUTpMgPB597P0YciZ6wgh5A0gpal87GOq5Ln/Iwalz7U=; Message-ID: <92934.8656.qm@web24505.mail.ird.yahoo.com> X-YMail-OSG: BIjZAs0VM1lqygJVaQFpY4Ca0t8YMQ8XbD8A5Ghv64as5OqlHpSA7XgaerD899qTxd0WHCEagRjRbJhBhWDkRvlflWXR4J7wMdt3jUXLgk1_YBEwt4WujZnElGQViiK6GYZ81LaL2RvMv3vfup8G..3oYRDid172jAJo4Te27aKx8H7f7H6KtWWzmVywTWoiOv4OdrkULnnJy04pvIz_d50vTCar7ZOkh0qycgolTQCCILR.aC0IYSwpJchf1CSUNlUgAvI9_OcZPthxBS2JhFK3MyxK6rZjMgP6SSyD4ptPWIE- Received: from [88.185.167.6] by web24505.mail.ird.yahoo.com via HTTP; Mon, 01 Mar 2010 07:21:26 GMT X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Mon, 1 Mar 2010 07:21:26 +0000 (GMT) From: Frederik Minatchy Subject: Re: How to pass HTTPRequest between two JSP ? To: Struts Users Mailing List In-Reply-To: <3017fd9e1002281724l483b7309t6165106cfacfa1a5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thank you for your answer ...=0A=0A=0AYes... In fact the goal is to pass th= e request from an action to an other. But after having reading the struts's= documentation I can only use result dispatcher type.=0A=0AIn this part := =0Ahttp://cwiki.apache.org/WW/redirect-result.html =0A=0Athey say that, wit= h a redirect result, the last action is lost and the only way to pass attri= butes (or parameters) is to use session or web parameters.=0A=0A=0AFinally = the question may be how to configure the dispatch result?=0A=0ARegards...= =0A=0AFred=0A=0A--- En date de=A0: Lun 1.3.10, Burton Rhodes a =E9crit=A0:=0A=0A> De: Burton Rhodes = =0A> Objet: Re: How to pass HTTPRequest between two JSP ?=0A> =C0: "Struts = Users Mailing List" =0A> Date: Lundi 1 mars 2010, 1= h24=0A> I think you may want to do a=0A> 'redirect' to the next action in y= our xml=0A> file.=A0 You pass the request from one action to the=0A> other.= Not from jsp=0A> to jsp.=0A> =0A> On 2/28/10, Frederik Minatchy =0A> wrote:=0A> > Hello...=0A> >=0A> > Since a few days I am wor= king with Struts 2. (2.1.6)=0A> > I am facing a big problem with HttpReques= t and JSPs.=0A> >=0A> > Well... I have to forward a HTTPRequest from page1.= jsp=0A> to page2.jsp=0A> >=0A> > So... How can I pass HTTPRequest attribute= betwen 2=0A> pages?=0A> >=0A> > Here is a part my web.xml file :=0A> >=0A>= > ...=0A> > =0A> >=A0 =A0 =A0=0A> =A0=A0=A0struts2=0A> >=0A> >=0A> org.apache.struts2.dispatcher.ng.= filter.StrutsPrepareAndExecuteFilter=0A> >=A0 =A0=A0=A0=0A> > =A0=A0=A0 =0A> > =A0=A0=A0=0A> stru= ts2=0A> > =A0=A0=A0 =A0=A0=A0=0A> /*=0A> > =A0=A0=A0 =0A> > ...=0A> >=0A> >=0A> > the struts= .xml file :=0A> >=0A> > ...=0A> >=0A> > >= =0A> class=3D"fr.bnf.platon.bnf.actions.ConsultationBnfDetailAction">=0A> >= =A0 =A0 =A0=0A> =A0=A0=A0=A0=A0=A0 >=0A> name=3D"success">/page= s/bnf/administration/detailBnf.jsp=0A> > =A0=A0=A0 =A0=A0=A0 =0A> >=0A> >=0A> >=0A> > =A0=A0=A0 =A0=A0=A0 name=3D"bnf-de= tail_modification"=0A> >=0A> class=3D"fr.bnf.platon.bnf.actions.Consultatio= nBnfDetailAction"=0A> > method=3D"modificationSubmit">=0A> >=A0 =A0 =A0=0A>= =A0=A0=A0=A0=A0=A0 >=0A> name=3D"success">/pages/bnf/administr= ation/detailBnf.jsp=0A> > =A0=A0=A0 =A0=A0=A0 =0A> > ...= =0A> >=0A> > and a part of the action java file (which=0A> implementents Re= questAware):=0A> >=0A> >=A0=A0=A0public String execute() throws=0A> Excepti= on=0A> >=A0 =A0 {=0A> >=A0 =A0 =A0=A0=A0request.put("test",=0A> 58);=0A> >= =A0 =A0 =A0=A0=A0return SUCCESS;=0A> >=A0 =A0=A0=A0}=0A> >=0A> >=A0 =A0 pub= lic String modificationSubmit() throws=0A> TechniqueException,=0A> > Foncti= onnelleException=0A> >=A0 =A0 {=0A> >=A0 =A0 =A0=A0=A0request.get("test"); = //=0A> is null=0A> >=A0 =A0 =A0=A0=A0editMode =3D true;=0A> >=A0 =A0 =A0=A0= =A0return SUCCESS;=0A> >=A0 =A0 }=0A> >=0A> >=0A> >=0A> > So... How can I p= ass the request attribute from on=0A> page to an other?=0A> >=0A> >=0A> >= =0A> >=0A> >=0A> >=0A> ----------------------------------------------------= -----------------=0A> > To unsubscribe, e-mail: user-unsubscribe@struts.apa= che.org=0A> > For additional commands, e-mail: user-help@struts.apache.org= =0A> >=0A> >=0A> =0A> -- =0A> Sent from my mobile device=0A> =0A> ---------= ------------------------------------------------------------=0A> To unsubsc= ribe, e-mail: user-unsubscribe@struts.apache.org=0A> For additional command= s, e-mail: user-help@struts.apache.org=0A> =0A> =0A=0A=0A --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org