HTTP Status 404 - Servlet action is not available 解决方法[转]

来源:互联网 发布:数据解析 编辑:程序博客网 时间:2024/05/24 01:50

type Status report

message Servlet action is not available

description The requested resource (Servlet action is not available) is not available.

问题原因:

1.、web.xml文件中未配置ActionServlet。

2、struts-config.xml文件未配置你要访问的Action。

3、你的jsp文件form标记中action属性的路径名称错误。

4、非以上三种情况。

 

针对以上4种情况相应的解决方案如下:

1、在web.xml文件中加上ActionServlet的配置信息

2、在struts-config.xml文件检查你要访问的Action配置文件。

3、检查jsp文件form标记中action属性的路径名称是否与struts-config.xml文件中action标记的path属性的路径名称一致。

4、非以上情况的解决办法就是检查web容器的log日志,如果时tomcat则检查下logs目录下的localhost_log文件,看里边是否记录有错误信息,然后根据错误信息提示将其纠正。