“HTTP Status 404 - No result defined for action ****** and result result”错误解决方法
2010-09-14 19:01
691 查看
这个问题困扰了一个下午,晚上在网上找了一些Struts入门教程看了一下,才发现问题关键,是因为我Struts.xml配置不对的缘故。我原来的Struts.xml代码如下:
需要将上面的代码改成如下代码:
即 namespace="/" extends="struts-default">。
action界面是通过 http://localhost:8080/StrutsTest1/query.action 来访问的。如果这里namespace改为namespace="/hello" ,则action界面的访问地址应该改为 http://localhost:8080/StrutsTest1/hello/query.action
/result.jsp /error.jsp
需要将上面的代码改成如下代码:
/result.jsp /error.jsp
即 namespace="/" extends="struts-default">。
action界面是通过 http://localhost:8080/StrutsTest1/query.action 来访问的。如果这里namespace改为namespace="/hello" ,则action界面的访问地址应该改为 http://localhost:8080/StrutsTest1/hello/query.action
相关文章推荐
- “HTTP Status 404 - No result defined for action ****** and result result”错误解决方法
- “HTTP Status 404 - No result defined for action ****** and result result”错误解决方法
- HTTP Status 404 - No result defined for action解决方法
- HTTP Status 404 - No result defined for action解决方法
- HTTP Status 404 - No result defined for action解决方法
- HTTP Status 404 - No result defined for action …… and result input。
- HTTP Status 404 - No result defined for action XXXX and result success 处理
- HTTP Status 404 - No result defined for action com.csdhsm.struts.action.LoginAction and result error
- HTTP Status 404 - No result defined for action XXX and result input
- struts2 上传文件 HTTP Status 404 - No result defined for action.....and result input
- HTTP Status 404 - No result defined for action and result input
- HTTP Status 404 - No result defined for action XXXX and result success 处理
- HTTP Status 404-no result defined for action com.huida.action.LinkManAction and result input
- HTTP Status 404 - No result defined for action org.csun.ns.action.NtHomesAction and result input
- HTTP Status 404 - No result defined for action xx.xx.xxAction and result error
- struts2的上传文件大小限制引起HTTP Status 404 - No result defined for action com.cpms.action.organ.UploadFile and result inpu
- HTTP Status 404 - No result defined for action com.ssk.action.Register and result success
- HTTP Status 404 - No result defined for action com.lnzkx.action.PeronAction and result success
- HTTP Status 404 - No result defined for action com.cnlive.csp.manage.action.SysGiftAction and result
- HTTP Status 500 - No result defined for action com.action.goodsAction and result input