Re: [struts] getting namespace of action through OGNL

2008-01-08 Thread Jeromy Evans
Wes Wannemacher wrote: 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 - value="@[EMAIL PROTECTED]().actionInvocation.proxy.namespace"/> I just get a big fat nothing :( Works for me

Re: [struts] getting namespace of action through OGNL

2008-01-08 Thread Wes Wannemacher
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 - > >> >> value="@[EMAIL PROTECTED]().actionInvocation.proxy.namespace"/> > >> > >> > >> I just get a big fat nothing :( > > > > Works for me! > > Maybe

Re: [struts] getting namespace of action through OGNL

2008-01-07 Thread Dale Newfield
Jeromy Evans wrote: Wes Wannemacher wrote: But, if I use the following OGNL - 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 y

Re: getting namespace of action through OGNL

2008-01-07 Thread Jeromy Evans
Wes Wannemacher wrote: Hello, I have been struggling to find a way to see what the namespace is from within a JSP. So, from the view, I would like to know what the namespace is of the action that was called. The following scriptlet correctly returns the namespace - <% com.opensymphony.xwork2

Re: getting namespace of action through OGNL

2008-01-07 Thread Ted Husted
I could see an argument for exposing the namespace as an attribute in the normal course. If nothing else, I wonder if we should roll this functionality into the SiteMesh plugin. -Ted. On Jan 7, 2008 3:39 PM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-01-07 at 15:20 -0500, Ted Hu

Re: getting namespace of action through OGNL

2008-01-07 Thread Wes Wannemacher
On Mon, 2008-01-07 at 15:20 -0500, Ted Husted wrote: > The Action (or an Interceptor) could set it as a property that a tag > could then access. I went ahead and wrote an interceptor. The only problem I have with doing it this way though is that the interceptor is doing some magic that isn't quit

Re: getting namespace of action through OGNL

2008-01-07 Thread Ted Husted
The Action (or an Interceptor) could set it as a property that a tag could then access. We can set properties directly to the stack from an Interceptor. (This is how the validators expose bad input to a typed field.) As a general rule, pages should be as dumb as possible, and only know what the v

getting namespace of action through OGNL

2008-01-07 Thread Wes Wannemacher
Hello, I have been struggling to find a way to see what the namespace is from within a JSP. So, from the view, I would like to know what the namespace is of the action that was called. The following scriptlet correctly returns the namespace - <% com.opensymphony.xwork2.ActionContext ac = com.op