Re: OGNL struts property

2007-11-09 Thread
Horay! You are the first person to actually see and acknowledge the problem. So far I have only recieved comments about the difference between the hash and the non hash version - which I get. But no one has explained why in the case of #2 OGNL returns null and not the value of the property as in #

Re: OGNL struts property

2007-11-08 Thread Dave Newton
To continue, the first one (probably; I'm still a little fuzzy on OGNL sometimes) works because if a property isn't found in the action it will continue looking on the stack until it finds it or runs out. Now, as to why #2 "doesn't work", I'm a little hazier on that: perhaps when OGNL has an expre

Re: OGNL struts property

2007-11-08 Thread Musachy Barroso
in OGNL there is always an object that is the "root", so %{name} is actually calling root.getName(). The "#" is used to reference something else than the root. In your views, your action will be the OGNL root (unless some tag pushes something to the stack), to refer to your property you would need