错误:The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the a...

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>

  </action> 

访问时将.jsp换成.do即可 

转载于:https://www.cnblogs.com/maomaoBlog/archive/2011/01/05/1926076.html

猜你喜欢

转载自blog.csdn.net/weixin_34293246/article/details/93273351