Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in our knowledge base article
Do you really want to delete this prezi?
Neither you, nor the coeditors you shared it with will be able to recover it again.
Make your likes visible on Facebook?
Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.
Transcript of Interceptors
More... INTERCEPTORS! Who / what does this work? Remember this picture? We've been using interceptors all along! struts-default Where is the struts-default package defined? Three Concepts Cross-cutting concerns Tomcat Servlet Container Servlets Filters Struts 2 intercepts every request!
Struts 2 is a "cross-cutting concern"! Struts controller configured here! Tomcat Servlet Container Struts 2 "Automatic" features in Struts 2 are actually courtesy of Interceptors
We use interceptors by using the struts-default package
Interceptors help isolate common cross-cutting concerns from individual classes
In a servlet container, filters provide cross-cutting functionality
Since we configure Struts 2 framework itself as a filter, we use the help of Struts 2 framework to configure our "actual" cross-cutting concerns.