struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe David Manana" <fdman...@ieee.org>
Subject action namespace
Date Thu, 20 Dec 2007 15:08:04 GMT
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


-- 
Filipe David Manana,
fdmanana@ieee.org

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

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