tks chris, that is what i want to know
From: Chris Pratt
To: Struts Users Mailing List ; john lee
Sent: Sunday, June 9, 2013 9:55 PM
Subject: Re: how interceptor knowing invoke's class name?
The interceptor is called by Struts, not by the Action. But, wh
The interceptor is called by Struts, not by the Action. But, what I think
you are really asking is "How can I tell which Action is being processed
when an Interceptor gets invoked?" If that's your real question, the
answer is:
String name = invocation.getInvocationContext().getName();
(*Chris
in struts2 , defined an interceptor, it triggered by Action, my question is
inside the interceptor class, what is the function call that can tell
caller's name, because that interceptor could be triggered by different Action,
we need to log the caller's name, but how?
thanks
john
3 matches
Mail list logo