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.opensymphony.xwork2.ActionContext.getContext();
com.opensymphony.xwork2.ActionInvocation invo =
ac.getActionInvocation();
com.opensymphony.xwork2.ActionProxy proxy = invo.getProxy();
out.println(proxy.getNamespace());
%>

But, if I use the following OGNL -
<s:property
value="@[EMAIL PROTECTED]().actionInvocation.proxy.namespace"/>

I just get a big fat nothing :(

I am open to any suggestions, I just want to know what namespace is... I
don't really want to parse the requested URL. If I can't figure it out
in OGNL, I will probably write an interceptor to put the value somewhere
that I can read it in OGNL. Before I write the interceptor through, I
figured I would ask here since I might be doing something blatantly
wrong.

Thanks!

-Wes


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

Reply via email to