人生最曼妙的风景,竟是内心的淡定与从容!
Your filter in the Web.xml file is not checked. The class in Filter does not only map other struts2 core filters. How can struts handle it for you? ? Code example is as follows:
<filter> <filter-name>strust2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</fitler-class> </filter> <filter-mapping> <filter-name>strust2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
Your filter in the Web.xml file is not checked. The class in Filter does not only map other struts2 core filters. How can struts handle it for you? ?
Code example is as follows: