File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "interceptor" Watch "interceptor" New topic


ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
my struts 2 action class has a reference to several interceptors. One of my URL maps to a method od the action class. In this mthod, it calls several other methods inside the action class. I know that, for the first time, when I click the URL, per strutts.xml, it finds this Action class and instantiate it, at this time it goes through those interceptors. Now, while it is running through the method, it calls other methods of the action class, when it calls another method, does it go through the interceptors again ??

David Newton

Joined: Sep 29, 2008
Posts: 12617

No--how would it? It's just a standard Java method call, and looking at the debug logs would have provided further evidence.
I agree. Here's the link:
subject: interceptor
It's not a secret anymore!