STRUTS2 's core entry program, which is functionally necessary to handle HTTP requests, is the basic requirement of the presentation layer framework. To achieve this, STRUTS2 has followed the servlet standard without exception, by implementing the standard filter interface for HTTP request processing.
By specifying this implementation class in Web. XML, we can introduce the STRUTS2 framework into the application.
<filter><filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter</filter-class></filter>< Filter-mapping><filter-name>struts2</filter-name><url-pattern>*.action</url-pattern ></filter-mapping>
The difference is that all URL requests are processed by struts, and the latter is just a request ending with an action
STRUTS2 Technology Insider----In-depth analysis Struts2 architecture and Design (i.)