求大神指导,struts2加入核心过滤器后,所有页面404。。。。。。。
加入核心过滤器后页面变成404,不加都可以访问
jsp页面
<body>
<a href="/ppp/abc.action">kokokokokoko</a>
</body>
这时web.xml
<filter>
<filter-name>StrutsPrepareAndExecuteFilter</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>StrutsPrepareAndExecuteFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
这是struts.xml
<struts>
<package name="">
<action name="abc" class="htc.ol">
<result name="abc">/result.jsp</result>
</action>
</package>
</struts>
我的访问路径:http://localhost:8080/ppp/test.jsp
不加过滤器可以访问,加了就404