java - struts运行一直报错,不知什么问题
黄舟
黄舟 2017-04-18 10:41:47
0
1
509
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
黄舟

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>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template