The Struts dispatcher cannot be found....

来源:互联网 发布:核盾网络验证是什么 编辑:程序博客网 时间:2024/05/21 08:01
  1. The Struts dispatcher cannot be found.   This is usually caused by using Struts tags without the associated filter. Strut   
  2. s tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher n   
  3. eeded for this tag. - [unknown location]

将<filter>
<filter-name>cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter-mapping>
<filter-name>cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>放到最前面就没出现了