码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2015-07-13 22:12:32      阅读:182      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!