错误:The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter...
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.解决方法
此错误原因在于直接访问的jsp页面上包含了struts标签
直接访问带有struts标签的jsp页面,必须通过action跳转,也就是要通过web.xml配置的过滤器访问
如果要直接访问带有struts标签的jsp页面
在web.xml中配置
<action name="*">
<result>/{1}.jsp</result>
<result>/{1}.jsp</result>
</action>
访问时将.jsp换成.do即可
posted on 2011-01-05 10:27 yaya's Space 阅读(1094) 评论(0) 编辑 收藏 举报