现在的位置: 首页 > 综合 > 正文

The Struts dispatcher cannot be found. This is usually caused by

2014年03月27日 ⁄ 综合 ⁄ 共 408字 ⁄ 字号 评论关闭

  提示找不到Struts转换器,配置有误,url-pattern不能写“*.action”,应:

	<filter>
		<filter-name>struts2</filter-name>
		<filter-class>
			org.apache.struts2.dispatcher.FilterDispatcher
		</filter-class>
		<init-param>
			<param-name>config</param-name>
			<param-value>
				struts-default.xml,struts-plugin.xml,../conf/struts.xml
			</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>struts2</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

抱歉!评论已关闭.