1. Create a struts web application

2. Create an Interceptor class (HelloNameInterceptor.java)

To create interceptors we have to implement Interceptor interface and override intercept method. Inside this method we can do the intercepting whatever needed. In this example i am adding logging before and after executing action.