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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "interceptor" Watch "interceptor" New topic


ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 370
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.
subject: interceptor
Similar Threads
Difference between Interceptors and Callback methods in EJB3
Query rgd interceptor invocation order
No of Times a URL is Hit
Struts2: file upload not working
Business method interceptor methods (AroundInvoke methods) invocation order