Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 73316 invoked from network); 28 May 2004 12:50:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 May 2004 12:50:59 -0000 Received: (qmail 60643 invoked by uid 500); 28 May 2004 12:50:13 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 60597 invoked by uid 500); 28 May 2004 12:50:12 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 60462 invoked by uid 98); 28 May 2004 12:50:11 -0000 Received: from paul.mcculloch@axiossystems.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(212.20.245.229):. Processed in 0.100888 secs); 28 May 2004 12:50:11 -0000 X-Qmail-Scanner-Mail-From: paul.mcculloch@axiossystems.com via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(212.20.245.229):. Processed in 0.100888 secs) Received: from unknown (HELO edn-msw-02.AXIOSSYSTEMS.COM) (212.20.245.229) by hermes.apache.org with SMTP; 28 May 2004 12:50:11 -0000 Received: from edn-exc-01.axiossystems.com (unverified [10.0.0.9]) by edn-msw-02.AXIOSSYSTEMS.COM (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 28 May 2004 13:49:32 +0100 Received: by edn-exc-01.axiossystems.com with Internet Mail Service (5.5.2653.19) id ; Fri, 28 May 2004 13:50:08 +0100 Message-ID: <7EBA35CAB674CF439C47F17AF5A7090101821E74@edn-exc-01.axiossystems.com> From: Paul McCulloch To: 'Struts Users Mailing List' Subject: RE: attribute name for forward Date: Fri, 28 May 2004 13:50:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The simplest solution to this is to use a constant (or the closest Java can manage) for the attribute name. Paul > -----Original Message----- > From: Mark Stacey [mailto:Mark_Stacey@vodafone.ie] > Sent: 28 May 2004 13:45 > To: user@struts.apache.org > Subject: attribute name for forward > > > Hi, > > I have a chain of actions that require the first action to > place a bean > in the session for a second action to retrieve. Is it > possible to figure > out in the first action the name of the attribute the second > action will > search for its bean under? > > for instance, instead of saying: > > session.setAttribute("userForm", userForm); > return mapping.findForward("success"); > > and then in the second action: > > session.getAttribute(mapping.getAttributeName()) > > Is there something similar to the following I can say? > > session.setAttribute(mapping.findForward("success").getXXXX(). > getAttributeName(), > userForm); > > this way if the attribute of the second action changes, I > won't have to > change the code for the first action > > thanks > > Mark > Mark Stacey > > I'm using Vodafone Mail - to get your free mobile email > account go to http://www.vodafone.ie > Use of Vodafone Mail is subject to Terms and Conditions http://www.vodafone.ie/terms/website --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org ********************************************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org