Java 异常处理错误页。找不到Struts dispatcher.org.apache.jasper.jaspereException:找不到Struts dispatcher

Java 异常处理错误页。找不到Struts dispatcher.org.apache.jasper.jaspereException:找不到Struts dispatcher,java,struts2,struts,Java,Struts2,Struts,很抱歉,我发布了这个问题,因为同一问题有许多重复。但是答案似乎对我没有帮助。我得到的错误如下所示 org.apache.catalina.core.StandardHostValve custom SEVERE: Exception Processing ErrorPage[errorCode=404, location=/WEB-INF/error/error.jsp] org.apache.jasper.JasperException: The Struts dispatcher canno

很抱歉,我发布了这个问题,因为同一问题有许多重复。但是答案似乎对我没有帮助。我得到的错误如下所示

org.apache.catalina.core.StandardHostValve custom
SEVERE: Exception Processing ErrorPage[errorCode=404, location=/WEB-INF/error/error.jsp]
org.apache.jasper.JasperException: 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
在我添加的web.xml文件中

<filter>  
        <filter-name>struts2</filter-name>  
        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>  
    </filter>  

    <filter-mapping>  
        <filter-name>struts2</filter-name>  
        <url-pattern>/*</url-pattern>  
    </filter-mapping> 

支柱2
org.apache.struts2.dispatcher.FilterDispatcher
支柱2
/*  
struts.xml文件

<action name="home">
            <result name="success" >/WEB-INF/index.jsp</result>
            <result name="error" >/WEB-INF/error/error.jsp</result>
</action>

/WEB-INF/index.jsp
/WEB-INF/error/error.jsp
我已将
struts2-core-2.2.1.jar
文件添加到WEB\u INF文件夹下的lib目录中。是否有人可以帮助我解决此问题。

自Struts 2.1.3以来,已弃用:

不赞成。自Struts 2.1.3以来,使用 相反,或者如果需要 除此之外还使用过滤器


也考虑迁移到StrutS2的最新版本(当前,2.3.16.3),以避免安全问题。

不直接访问JSP-S,但通过ActuoS.TANX大量访问UR答复@ AlkEdSrrm。我已经更新了我的动作的样子。请您检查是否有任何错误,您访问的URL是什么?使用前进到JSP的动作,调用该操作时,您可以确保它已被struts2 filter.tanx过滤,以获得回复@Andrea。我现在已将web.xml中的过滤器名称更改为
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
,但仍然收到相同的错误