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 * n( h, ^ X, b8 s* i9 i找不到struts的分发器dispatcher,这通常是由于使用了struts标签,而没有配置相关联的filter。struts标签只有在http请求通过标签的servlet filter过滤器之后才可用,这些过滤器用来为这些标签初始化struts分发器) w( c4 X$ G! Z; {2 L3 O
看一下你的JSP页面中没有加8 v0 A( T& b2 y6 |9 {% L E. Q0 {
<%@ taglib prefix="s" uri="/struts-tags"%> 4 t" V! z; u9 u9 [! k/ d! o4 m) J) c4 \8 L. @7 [1 a j
也有可能是配置问题) N. p0 p: L" C; R3 ~
web.xml中配置的struts2 filter拦截器不是/* 4 \! ^! o6 { G% N; A/ l& ?# t应该配置成: $ i, f8 p) y. h<filter-mapping> 6 m5 @0 M- L2 h! u <filter-name>struts2</filter-name> , m/ F m. ~. ] <url-pattern>/*</url-pattern> 3 @; Z5 A w: l P* J3 { </filter-mapping>* H( _- p5 }5 ]8 }% I, c/ V- v