当前位置: 代码迷 >> Java Web开发 >> 在浏览器进去struts2的action 报错404
  详细解决方案

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

热度:71   发布时间:2016-04-16 23:56:18.0
在浏览器进入struts2的action 报错404



这是web.xml



这是sturuts.xml



这是action 代码


action struts 浏览器

------解决方案--------------------
3楼正解。
你的CoustomersAction的方法返回了success,但是你的struts.xml中没有配置<result name="success"></result>的返回路径。

顺便吐槽一下你的英文
Customer 不是  Coustomer
struts.xml  不是  sturuts.xml
  相关解决方案