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" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Friday, March 14, 2008 2:19 PM Subject: Re: Question regarding OGNL > --- Laurie Harper <[EMAIL PROTECTED]> 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: > > <p>Prop from Sanity action: <s:property value="sanityCheck"/></p> > <p>Prop from Sanity action: <s:property value="#sanityCheck"/></p> > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]