struts2中出现There is no Action mapped for namespace / and action name . - [unknown location]
2017-07-01 19:12
651 查看
首先这是一个Struts2初学者经常出现的问题,这里我也不想白嫖,以下附上一篇对此问题进行了很好总结的文章网址:
http://www.cnblogs.com/gulvzhe/archive/2011/11/21/2256632.html
然后我这里也记录一下,以备不时之需
导致上述错误的原因主要有两种。总结如下:
一、struts.xml文件错误。这种错误又分为以下几种:1,struts.xml文件名错误。一定要注意拼写问题;2,struts.xml文件放置路径错误。一定要将此文件放置在src目录下。;3,struts.xml文件内容错误。(我的问题就是这个,复制了以下上面那篇文章中的正确代码就解决了我的问题)
二、如果排除了struts.xml文件的问题,还有一种可能就是,在web.xml文件中的<welcome-file>信息中是否配置了自己工程的启动页面。
如果想更详细的了解及解决该问题,还是看上面网址中的那篇文章吧。
http://www.cnblogs.com/gulvzhe/archive/2011/11/21/2256632.html
然后我这里也记录一下,以备不时之需
导致上述错误的原因主要有两种。总结如下:
一、struts.xml文件错误。这种错误又分为以下几种:1,struts.xml文件名错误。一定要注意拼写问题;2,struts.xml文件放置路径错误。一定要将此文件放置在src目录下。;3,struts.xml文件内容错误。(我的问题就是这个,复制了以下上面那篇文章中的正确代码就解决了我的问题)
二、如果排除了struts.xml文件的问题,还有一种可能就是,在web.xml文件中的<welcome-file>信息中是否配置了自己工程的启动页面。
如果想更详细的了解及解决该问题,还是看上面网址中的那篇文章吧。
相关文章推荐
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name...
- Struts应用出现的错误及解决方法:There is no Action mapped for namespace / and action name login
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- Struts2:HTTP Status 404 - There is no Action mapped for namespace[ / ]and action name singleUpload.
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- 关于struts2中的There is no Action mapped for namespace / and action name .
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- Struts2中"There is no Action mapped for namespace / and action name"
- Struts2---There is no Action mapped for namespace / and action name
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- struts2之There is no Action mapped for namespace / and action name
- Struts2学习之package name="struts2"对应谁--There is no Action mapped for namespace / and action name 异常
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- 发布Struts2工程打开action链接提示There is no Action mapped for namespace / and action name **解决方案
- 每当使用struts2动态方法调用时,总是出现错误:There is no Action mapped for namespace [/user] and action name [user!add]
- struts2中错误提示:There is no Action mapped for namespace / and action name
- J2EE Struts2关于"There is no Action mapped for namespace / and action name UserAction"的调试
- Struts2 无法导向到首页There is no Action mapped for namespace / and action name
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结