HTTP Status 404 - Servlet action is not available
> 在部署Struts時(shí),出現(xiàn)如下錯(cuò)誤信息:HTTP Status 404 - Servlet action is not availabletype Status report message Servlet action is not available description The requested resource (Servlet action is not available) is not available. 問(wèn)題原因: 1.、web.xml文件中未配置ActionServlet。 2、struts-config.xml文件未配置你要訪問(wèn)的Action。 3、你的jsp文件form標(biāo)記中action屬性的路徑名稱錯(cuò)誤。 4、非以上三種情況。 針對(duì)以上4種情況相應(yīng)的解決方案如下: 1、在web.xml文件中加上ActionServlet的配置信息
2、在struts-config.xml文件檢查你要訪問(wèn)的Action配置文件。 3、檢查jsp文件form標(biāo)記中action屬性的路徑名稱是否與struts-config.xml文件中action標(biāo)記的path屬性的路徑名稱一致。 4、非以上情況的解決辦法就是檢查web容器的log日志,如果時(shí)tomcat則檢查下logs目錄下的localhost_log文件,看里邊是否記錄有錯(cuò)誤信息,然后根據(jù)錯(cuò)誤信息提示將其糾正。 < |
posted on 2008-08-28 12:11 半導(dǎo)體 閱讀(2668) 評(píng)論(0) 編輯 收藏