myelipse里Struts的action找不到,跪求解答
在myeclipes 中集成Struts时,总是提示action找不到,具体提示如下: The file /D:/myeclipse/test1/webContent/first.action cannot be found.Please check the location and try again.
web.xml 配置文件如下:
<!-- Struts2过滤器 -->
<filter>
<!-- 过滤器名称 -->
<filter-name>struts2</filter-name>
<!-- 过滤器类 -->
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<!-- Struts2过滤器映射 -->
<filter-mapping>
<!-- 过滤器名称 -->
<filter-name>struts2</filter-name>
<!-- 过滤器映射 -->
<url-pattern>/*</url-pattern>
</filter-mapping>
struts.xml文件如下:
<package name="myPackage" extends="struts-default">
<!-- 定义action -->
<action name="first">
<!-- 定义处理成功后的映射页面 -->
<result>/first.jsp</result>
</action>
</package>
其中加不加namespace=“/”都是一个结果,总是出不来,哭死,跪求大侠解答,谢谢!