search

Home  >  Q&A  >  body text

java - struts运行一直报错,不知什么问题

黄舟黄舟2768 days ago508

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-18 10:43:47

    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>

    reply
    0
  • Cancelreply