1. <filter> 
  2.     <filter-name>struts2</filter-name> 
  3.     <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> 
  4. </filter> 
  5.  
  6. <filter-mapping> 
  7.     <filter-name>struts2</filter-name> 
  8.     <url-pattern>/*</url-pattern> 
  9. </filter-mapping>