I use some things in my Struts-based application using interceptors, and I am embarrassed about how their life cycle works. According to the Struts docs ( "Interceptors" , "Writing Interceptors" and "Big Picture" ), it should work something like this:
Firstinterceptor
NextInterceptor
Lastinterceptor
Action
Result
Lastinterceptor
NextInterceptor
Firstinterceptor
which makes sense, but I come across how to distinguish an interceptor call made before an action from one executable file after rendering the result (I skip PreResultListenerhere). If I run the debugger, I get two calls intercept()and cannot find anything obvious in ActionInvocationwhich I passed. ( Update : This part was a lot of confusion at my end, and I was able to answer my question below as soon as I received it)
The Big Picture page speaks a little vaguely about the called "before" and "after" "sentences," but I donβt know. I donβt know what to do about it:
[...]
This includes invoking any interceptors (before clause) before invoking the action itself.
[...]
( , after).
[...]
( : - )