问答详情
源自:4-10 关于input的代码演示-深入Struts2

input错误

The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. 

出现这个那还是得配置过滤器?

提问者:scala_somnus_gxy 2015-11-27 14:13

个回答

  • Fcming
    2015-12-10 23:19:07

    (1)JSP页面中没有加入类似下面内容:
    <%@ taglib prefix="s" uri="/struts-tags"%>
    (2)拦截器不是/*
     <filter>
      <filter-name>struts2</filter-name>
      <filter-class>   org.apache.struts2.dispatcher.FilterDispatcher
      </filter-class>
     </filter>
    <filter-mapping>
       <filter-name>struts2</filter-name>
       <url-pattern>/*</url-pattern>
    </filter-mapping>

  • weibo_阿大木木_0
    2017-10-28 23:54:03

    这个错误怎么解决的?