Hi.

I have interceptor that logs requests to actions. In it's
intercept(ActionInvocation) method i easily find the name of currently
executed action using following code:

public String intercept(ActionInvocation actionInvocation) {
      String actionName = actionInvocation.getInvocationContext().getName();
      .............
}

I believe i could get the namespace by extracting part of request URL
between context name and action name. But is there any better way, like the
one for action name?

Thanks.

-- 
View this message in context: 
http://www.nabble.com/S2%3A-How-to-get-namespace-of-currently-executed-action-from-interceptor--tf3654793.html#a10210505
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to