On Tue, 2008-01-08 at 01:21 -0500, Dale Newfield wrote:
> Jeromy Evans wrote:
> > Wes Wannemacher wrote:
> >> But, if I use the following OGNL -
> >> <s:property
> >> value="@[EMAIL PROTECTED]().actionInvocation.proxy.namespace"/> 
> >>
> >>
> >> I just get a big fat nothing :(
> >
> > Works for me!
> 
> Maybe it's working for both of you--Wes, are you certain that the 
> appropriate answer for the page you're viewing isn't ""?  Jeromy gets 
> "/secure" for the page he tested, but had he tested a different page...

Yes, I am sure, in my original message I had a scriptlet that executed
and output what I wanted, but the OGNL right below it did not. I am
using the 2.1.x snapshot, so there may be an issue with it. I actually
tried a few different permutations of the OGNL code I listed and was
unable to get any results. The call to the static method 'getContext()'
returned null. The ActionContext is threadlocal so I wonder if things
maybe have changed between 2.0 / 2.1 making it unavailable within OGNL.

To be sure that Sitemesh / ActionContextCleanup weren't the issue, I had
tried it within an undecorated action too and got null.

There have been some recent updates in SVN, so I am going to rebuild and
redeploy. If it works as advertised in 2.0.x but not in 2.1.x I may file
a JIRA. 

In the meantime I worked around the issue, so my current project is
still rolling along! Thanks for the help!

-Wes


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to