File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "interceptor" Watch "interceptor" New topic
Author

interceptor

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 374
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 ??

thanks.
David Newton
Author
Rancher

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.
 
Don't get me started about those stupid light bulbs.
 
subject: interceptor
 
Similar Threads
Business method interceptor methods (AroundInvoke methods) invocation order
Struts2: file upload not working
No of Times a URL is Hit
Query rgd interceptor invocation order
Difference between Interceptors and Callback methods in EJB3