Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 62464 invoked from network); 8 Jun 2005 23:45:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jun 2005 23:45:52 -0000 Received: (qmail 72738 invoked by uid 500); 8 Jun 2005 23:45:44 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 72564 invoked by uid 500); 8 Jun 2005 23:45:43 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 72522 invoked by uid 99); 8 Jun 2005 23:45:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of dion.gillard@gmail.com designates 64.233.184.199 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.199) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Jun 2005 16:45:39 -0700 Received: by wproxy.gmail.com with SMTP id 58so575465wri for ; Wed, 08 Jun 2005 16:45:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZSs95uNSYz6MhTSXNklzTvqkeRH+RNt+XG1OmIWkzOCHTi5BmIJqKQi0lS4k5JaU8V1uqyNWtaIQqO+MuhjbLJ9FgsdMJ8B/FTrLpqPbUkA8fLGfypDzhV4oE+5tWu0Ov3IHVTd2ob/nr3vhyYknzUgE0URsbh1nIKXK1/xVcO8= Received: by 10.54.124.5 with SMTP id w5mr15725wrc; Wed, 08 Jun 2005 16:45:33 -0700 (PDT) Received: by 10.54.138.16 with HTTP; Wed, 8 Jun 2005 16:45:33 -0700 (PDT) Message-ID: Date: Thu, 9 Jun 2005 09:45:33 +1000 From: Dion Gillard Reply-To: Dion Gillard To: Jakarta Commons Users List Subject: Re: [jelly] Dynamic variable interpolation In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 6/9/05, Grant Ingersoll wrote: > Hi, >=20 > Am a fairly new user of Jelly and am wondering if there is a way to use > the value of a variable as the name of a new variable which I can then > dereference in my script. >=20 > Something like: >=20 > > > > >=20 >=20 >=20 > > ${foo} > > > echo ${ ${var}.name } > <-------------------- what is the syntax for this??? echo ${context.getVariable(var + '.name')} should do it. >=20 > >=20 >=20 > Output would be: > A > B > C >=20 > Do I use a dynabean? >=20 > Thanks, > Grant >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org >=20 >=20 --=20 http://www.multitask.com.au/people/dion/ "You are going to let the fear of poverty govern your life and your reward will be that you will eat, but you will not live." - George Bernard Shaw --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org