struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe David Manana" <>
Subject action namespace
Date Thu, 20 Dec 2007 15:08:04 GMT

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();"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 ?


Filipe David Manana,

Obvious facts are like secrets to those not trained to see them.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message