测试struts2.0框架出现404错误! org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndEx

报错信息:java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter



[b]解决方案:

struts.xml

<!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
    <include file="struts-default.xml"/>
    <package name="testStrutsPage" namespace="/test" extends="struts-default">
    	<action name="TestStrutsAction" class="com.jerry.action.TestStrutsAction" method="testStruts">
    		<result name="success" type="dispatcher">/test/testStruts.jsp</result>
    	</action>
    </package>
</struts>




[/b]

你可能感兴趣的:(apache,框架,xml,jsp,struts)