程序报错:The Struts dispatcher cannot be found.

  • 错误
    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
  • 解决方法
    (1)JSP页面中没有加入类似下面内容:
<%@ taglib prefix="s" uri="/struts-tags"%>

(2)拦截器不是/*

  
    struts2
    
         org.apache.struts2.dispatcher.FilterDispatcher 
    
  

   struts2
   /*

你可能感兴趣的:(程序报错:The Struts dispatcher cannot be found.)