初学struts2 出现There is no Action mapped for namespace...错误
2015-07-15 16:43
399 查看
运行环境
windows8.1
eclipse luna 4.4.2
jre 1.8
struts- 2.4.24
运行项目出现There is no Action mapped for namespace ...如下
type Status report
message There is no Action mapped for namespace [/user] and action name [userAction!toLogin] associated with context path [/Struts2_11].
description The requested resource is not available.
一般情况下出现这种错误,原因有:
1:struts.xml文件路径错误
2:struts.xml文件内容配置有误
但这两种我都没写错,如下
最后把struts版本换成 struts-2.3.15问题解决。
windows8.1
eclipse luna 4.4.2
jre 1.8
struts- 2.4.24
运行项目出现There is no Action mapped for namespace ...如下
HTTP Status 404 - There is no Action mapped for namespace [/user] and action name [userAction!toLogin] associated with context path [/Struts2_11].
type Status reportmessage There is no Action mapped for namespace [/user] and action name [userAction!toLogin] associated with context path [/Struts2_11].
description The requested resource is not available.
Apache Tomcat/8.0.23
一般情况下出现这种错误,原因有:1:struts.xml文件路径错误
2:struts.xml文件内容配置有误
但这两种我都没写错,如下
最后把struts版本换成 struts-2.3.15问题解决。
相关文章推荐
- MyEclipse Web Project转Eclipse Dynamic Web Project
- Windows Clang开发环境备忘
- 让Flex Builder 3.0与Eclipse3.4整合起来
- struts2 jquery 打造无限层次的树
- Eclipse配置Javascript开发环境图文教程
- 使用zend studio for eclipse不能激活代码提示功能的解决办法
- ajax交互Struts2的action(客户端/服务器端)
- struts2 spring整合fieldError问题
- Struts2的s:radio标签使用及用jquery添加change事件
- ext for eclipse插件安装方法
- 解决Fedora14下eclipse进行android开发,ibus提示没有输入窗口的方法详解
- eclipse导入jquery包后报错的解决方法
- Eclipse 格式化代码时不换行与自动换行的实现方法
- Eclipse下jQuery文件报错出现错误提示红叉
- eclipse如何忽略js文件报错(附图)
- eclipse3.2.2 + MyEclipse5.5 + Tomcat5.5.27 配置数据库连接池
- jquery库或JS文件在eclipse下报错问题解决方法
- 什么是eclipse,eclipse的意思解析
- Zend Studio for Eclipse的java.lang.NullPointerException错误的解决方法
- eclipse+myeclipse 环境配置方法