您的位置:首页 > 理论基础 > 计算机网络

“HTTP Status 404 - No result defined for action ****** and result result”错误解决方法

2010-09-14 19:01 691 查看
这个问题困扰了一个下午,晚上在网上找了一些Struts入门教程看了一下,才发现问题关键,是因为我Struts.xml配置不对的缘故。我原来的Struts.xml代码如下:






/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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐