我用的是struts-2.0.6-all WEB-INF\lib包括的包有:
commons-logging-1.1.jar\freemarker-2.3.8.jar\ognl-2.6.11.jar\struts2-core-2.0.6.jar\struts-core-1.3.5.jar\xwork-2.0.1.jar..
我用的例子也是官方网上的struts2-blank-2.0.6.war例子
structs.jar在struts-2.0.6-all 这个版本中是struts-core-1.3.5.jar这个名字命名的.
在ROOT有一个index.html这个页面成功打开,然后自动跳转到example/HelloWorld.action,然后就出现了
HTTP Status 404 - Servlet action is not available
--------------------------------------------------------------------------------
type Status report
message Servlet action is not available
description The requested resource (Servlet action is not available) is not available.
web-inf下web.xml的配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
</web-app>
请高手指点
Struts 404错误版本(struts-2.0.6-all)