struts常见问题1:HTTP Status 404 - Servlet action is not available
2008-06-27 10:53
489 查看
在部署Struts时,出现如下错误信息:
HTTP Status 404 - Servlet action is not available
type Status reportmessage 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的配置信息
+(/|q/.
action q*T(ckC
org.apache.struts.action.ActionServlet `&Bo:5/*3
/M:VR
config iWuT
/WEB-INF/struts-config.xml :6qM B3 Fe y/+n/7
w;1XN$
debug Nx2h789
0 _@IvruS HOm?ev c?B[4.L)F#
detail 1n6hmG%
0 69FyQ!? D)ADRH
2 ^C-Q^H/fOw
2、在struts-config.xml文件检查你要访问的Action配置文件。
3、检查jsp文件form标记中action属性的路径名称是否与struts-config.xml文件中action标记的path属性的路径名称一致。
4、非以上情况的解决办法就是检查web容器的log日志,如果时tomcat则检查下logs目录下的localhost_log文件,看里边是否记录有错误信息,然后根据错误信息提示将其纠正。
相关文章推荐
- 在部署Struts时,出现如下错误信息:HTTP Status 404 - Servlet action is not available
- Struts:HTTP Status 404 - Servlet action is not available
- HTTP Status 404 - Servlet action is not available
- HTTP Status 404 - Servlet action is not available
- HTTP Status 404 - Servlet action is not available
- HTTP Status 404 - Servlet action is not available
- HTTP Status 404 - Servlet action is not available 解决方法[转]
- HTTP Status 404 - Servlet action is not available
- 烦人的错误HTTP Status 404 - Servlet action is not available
- HTTP Status 404 - Servlet action is not available
- 在struts-config.xml中配置validator-plugin导致404 Servlet action is not available
- SSH整合-Http 404 Servlet action is not available的解决方案
- HTTP Status 404 - Servlet default is not available
- HTTP-404:Servlet action is not available
- 在IE浏览器输入测试servlet程序报:HTTP Status 404(The requested resource is not available)错
- HTTP Status 404 - Servlet testServlet is not available
- HTTP Status 404(The requested resource is not available)的几种解决方法
- Servlet action is not available 问题解决
- web项目浏览器打开遇到问题:HTTP Status 503 - This application is not currently available
- HTTP Status 404(The requested resource is not available)