读书人

在浏览器进去struts2的action 报错404

发布时间: 2013-03-06 16:20:31 作者: rapoo

在浏览器进入struts2的action 报错404
在浏览器进去struts2的action 报错404


这是web.xml
在浏览器进去struts2的action 报错404


这是sturuts.xml
在浏览器进去struts2的action 报错404


这是action 代码
在浏览器进去struts2的action 报错404

在浏览器进去struts2的action 报错404 action struts 浏览器
[解决办法]
3楼正解。
你的CoustomersAction的方法返回了success,但是你的struts.xml中没有配置<result name="success"></result>的返回路径。

顺便吐槽一下你的英文
Customer 不是 Coustomer
struts.xml 不是 sturuts.xml

读书人网 >Java Web开发

热点推荐