出現這種錯誤有以下幾種情況:
1、web.xml文件中未配置ActionServlet,或者是配置了filter過濾機制,但是這種機制只對jsp起作用,對action不起作用;
2、struts-config.xml文件未配置你要訪問的Action。
3、你的jsp文件form標記中action屬性的路徑名稱錯誤。
4、非以上三種情況。
本工程名爲:structs_0100,本工程簡單的實現一個輸出hello structs2
1、配置web.xml文件:
出現這種錯誤有以下幾種情況:
1、web.xml文件中未配置ActionServlet,或者是配置了filter過濾機制,但是這種機制只對jsp起作用,對action不起作用;
2、struts-config.xml文件未配置你要訪問的Action。
3、你的jsp文件form標記中action屬性的路徑名稱錯誤。
4、非以上三種情況。
本工程名爲:structs_0100,本工程簡單的實現一個輸出hello structs2
1、配置web.xml文件: