首页 > 移动平台 > 详细

struts2 : There is no Action mapped for namespace / and action name

时间:2015-07-13 22:09:32      阅读:395      评论:0      收藏:0      [点我收藏+]

 2015.07.13 晚 学习搭建SSI 框架,用到struts2 ,启动后访问指定login.action报错

There is no Action mapped for namespace / and action name

 

查找原因,struts.xml 没有被找到。

解决方法 1 : 在web.xml中指定struts.xml 的位置 

 

技术分享

解决方法 2 : 将struts.xml 放在src根目录下,web.xml中不需配置struts.xml的地址。

 

总结 ,对框架各配置文件之间作用不了解。

struts2 : There is no Action mapped for namespace / and action name

原文:http://www.cnblogs.com/rrblog/p/4643973.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!