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 Functional difference between Struts 2 interceptors and Spring AOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Functional difference between Struts 2 interceptors and Spring AOP" Watch "Functional difference between Struts 2 interceptors and Spring AOP" New topic
Author

Functional difference between Struts 2 interceptors and Spring AOP

Yaniv Ravannamuhb
Greenhorn

Joined: Nov 13, 2010
Posts: 1
Hello,

Functionality-wise, what is the difference between the two: Struts 2 interceptors and Spring AOP ? I've been thinking they both are a way to intercept execution path somewhere and perform some cross cutting tasks. They might alter the direction/flow/path of the execution also.

I don't know if am getting it wrong here, and need your help. If they both are the same, is one better than the other ?

Thank you for your time.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Yes, i'm feeling that same. There is no difference. But need's clarification.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

my doubt clarified here. http://www.coderanch.com/t/91681/java/Why-Interceptor-pattern-AOP
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Functional difference between Struts 2 interceptors and Spring AOP
 
Similar Threads
AOP
Spring AOP / Spring AOP + AspectJ ?
AOP vs OOP
Seam AOP
Logging Implementation using Spring AOP or AspectJ