当前位置: 代码迷 >> Java Web开发 >> struts2访问action报错404,该怎么解决
  详细解决方案

struts2访问action报错404,该怎么解决

热度:479   发布时间:2016-04-14 21:33:46.0
struts2访问action报错404
一个小示例程序,但是通过href标签直接访问action就会报错404,jsp中href的路径应该没错,xml配配置action等代码如下,请大家指教一下



jsp:

struts2 xml:

文件结构:

bean:

action:

web xml:
------解决思路----------------------
struts.xml加上下面内容看看

<struts>
       <constant name="struts.action.extension" value="action,do"></constant>
  相关解决方案