Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 8319 invoked from network); 15 Mar 2008 01:51:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2008 01:51:41 -0000 Received: (qmail 76677 invoked by uid 500); 15 Mar 2008 01:51:28 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 76650 invoked by uid 500); 15 Mar 2008 01:51:28 -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 76639 invoked by uid 99); 15 Mar 2008 01:51:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 18:51:28 -0700 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=FORGED_MUA_OUTLOOK,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.54.246.152 as permitted sender) Received: from [65.54.246.152] (HELO bay0-omc2-s16.bay0.hotmail.com) (65.54.246.152) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Mar 2008 01:50:50 +0000 Received: from hotmail.com ([10.4.30.17]) by bay0-omc2-s16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 14 Mar 2008 18:51:01 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 14 Mar 2008 18:51:00 -0700 Message-ID: Received: from 76.119.179.89 by BLU136-DAV7.phx.gbl with DAV; Sat, 15 Mar 2008 01:50:58 +0000 X-Originating-IP: [76.119.179.89] X-Originating-Email: [mgainty@hotmail.com] X-Sender: mgainty@hotmail.com From: "Martin Gainty" To: "Struts Users Mailing List" References: <780895.90296.qm@web56706.mail.re3.yahoo.com> Subject: Re: Question regarding OGNL Date: Fri, 14 Mar 2008 21:47:06 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-OriginalArrivalTime: 15 Mar 2008 01:51:00.0186 (UTC) FILETIME=[04CFFBA0:01C8863F] X-Virus-Checked: Checked by ClamAV on apache.org dave is is correct.. #foo.blah // returns foo.getBlah() #bar.blah // returns bar.getBlah() blah // returns foo.getBlah() because foo is the root http://struts.apache.org/2.x/docs/ognl-basics.html Martin- ----- Original Message ----- From: "Dave Newton" To: "Struts Users Mailing List" Sent: Friday, March 14, 2008 2:19 PM Subject: Re: Question regarding OGNL > --- Laurie Harper wrote: > > AFAIK, %{#name} is equivalent to %{name} when there is a getName() on > > the action, i.e. OGNL will look at the action first then search the rest > > of the value stack. > > Mmm, I'm not sure about that. The "#" should look explicitly for a named > object in the stack context rather than calling getXxx() on stack objects. > > For example, if I have: > >

Prop from Sanity action:

>

Prop from Sanity action:

> > only the first one will print the action's getSanityCheck() value. > > Not that I just happened to have that example laying around or anything geeky > like that. > > *ahem* > > Chup Chups! > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org