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 tag8 _4 U4 G, X8 j. T
找不到struts的分发器dispatcher,这通常是由于使用了struts标签,而没有配置相关联的filter。struts标签只有在http请求通过标签的servlet filter过滤器之后才可用,这些过滤器用来为这些标签初始化struts分发器2 A4 Q4 Q0 ?" p
看一下你的JSP页面中没有加/ @6 {& M* G* }& T! P7 M( l
<%@ taglib prefix="s" uri="/struts-tags"%>! ^/ w' B* ?2 b" h5 o2 x
z' L7 T) j: e% M D1 |也有可能是配置问题- v& G, Z6 R! U: Y
web.xml中配置的struts2 filter拦截器不是/*" D) q+ Q: k7 ~
应该配置成:) n/ i+ U( J. M
<filter-mapping> : a' Z1 `4 c' t2 t* w! s# d3 h3 \ <filter-name>struts2</filter-name>7 u3 o0 y7 d0 z; n
<url-pattern>/*</url-pattern>& U9 l5 S. J s K5 s) r
</filter-mapping>) A1 H: n- |! G# k; ]3 `( \& m
$ V* e0 k4 ]0 _5 u