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% s. V( R# D! T$ t
找不到struts的分发器dispatcher,这通常是由于使用了struts标签,而没有配置相关联的filter。struts标签只有在http请求通过标签的servlet filter过滤器之后才可用,这些过滤器用来为这些标签初始化struts分发器# S% A9 O* A E2 a% s$ ~
看一下你的JSP页面中没有加 . j' ] e* Z h1 O# N- p<%@ taglib prefix="s" uri="/struts-tags"%>, ? `" {$ c; m, l5 Y
. C, J& O. L5 O5 g v也有可能是配置问题 & t/ ]& ]4 V( `: Pweb.xml中配置的struts2 filter拦截器不是/* 2 k4 w% O7 H e: Y% X应该配置成: 5 U- {9 g# U1 ?, \. ^0 Q, c/ ~. ]<filter-mapping> $ Q% f+ x' a# |( f) B# Q0 _+ F <filter-name>struts2</filter-name>7 W, t1 b1 o) g- p6 Z4 e( C
<url-pattern>/*</url-pattern> 3 |1 F# T. |$ i7 O) S </filter-mapping>: ~3 E* y& D2 z. Y+ d& G/ g