Filipe,

Try this in the intercept method - ai.getProxy().getNamespace() (where ai is the ActionInvocation instance being passed in into the intercept method)

- Omkar

Filipe David Manana wrote:
Hi,

In an Interceptors intercept method I am able to get the associated action's
name, through the ApplicationContext:

public String intercept(ActionInvocation ai) throws Exception
   {
      com.opensymphony.xwork2.ActionContext ac = ai.getInvocationContext();

      log.info("CheckLoginInterceptor inv, actionName: " + ac.getName());
      return ai.invoke();
  }

Now, how do I get the action's namespace, as defined in its package's
namespace in struts.xml ?

thanks




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

Reply via email to