struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe David Manana" <fdman...@ieee.org>
Subject Re: action namespace
Date Thu, 20 Dec 2007 16:55:20 GMT
It works! :)
Thank you.

On 12/20/07, Omkar patil <ospatil.os@gmail.com> wrote:
>
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
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