Eclipse 配置Struts2,创建一个空项目,报错There is no action ....
2014-05-23 12:24
495 查看
以前使用MyEclipse创建Struts2项目时,没有出现过这个问题,许久没用过Struts2了,然后在Eclipse上创建Struts2的web项目,按着一般的配置步骤来做,最后点击运行,结果不显示项目该要显示的首页,反而显示的是一堆的错误:“There is no action.....“,霎时间感觉好坑爹啊,怎么会这样的呢?照理说是按照应有的步骤一步步来配置了的,想想都不可能,很是纠结。
后面发现MyEclipse生成字节码文件的默认目录和Eclipse生成字节码的默认目录居然是不一样的,MyEclipse字节码生成的文件所在的目录是WEB-INF下的classes,而Eclipse字节码生成的文件所在目录却是根目录下的build,因而,只需把Eclipse的Web项目字节码目录修改为”WebContent\WEB-INF\classes“即可,点击运行,OK啦!
后面发现MyEclipse生成字节码文件的默认目录和Eclipse生成字节码的默认目录居然是不一样的,MyEclipse字节码生成的文件所在的目录是WEB-INF下的classes,而Eclipse字节码生成的文件所在目录却是根目录下的build,因而,只需把Eclipse的Web项目字节码目录修改为”WebContent\WEB-INF\classes“即可,点击运行,OK啦!
相关文章推荐
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name [Login] associated w
- eclipse中配置struts2出现eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name [L
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name [Login] associated w
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name...
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name [Login] associated wi
- 配置Struts2动态Action报错404:There is no Action mapped for namespace [/]
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name [Login] associated wi
- MyEclispe配置struts2出现There is no Action mapped for namespace [/] and action name [user_all]...问题处理
- eclipse 部署struts2 There is no Action mapped for namespace / and action name
- IDEA配置Struts2出现There is no Action mapped for namespace [/] and action name [login]
- struts2配置错误 There is no Action mapped for namespace [/] and action name [] associated with context
- struts2 框架0配置,错误信息:There is no Action mapped for namespace
- Struts2中关于"There is no Action mapped for namespace / and action name"的报错的总结
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结 今天在调试一个基础的Struts2框架小程
- struts2常见配置解决错误There is no mapped for namespace[/] and action name
- There is no Action mapped for namespace [/] and action name [accoutLogin] associated with context path [/cloudclick].Struts2错误
- Struts2 找不到Action的问题:There is no Action mapped for action name XXXX. - [unknown location]
- 每当使用struts2动态方法调用时,总是出现错误:There is no Action mapped for namespace [/user] and action name [user!add]
- Struts2中DMI(动态方法调用)的错误问题(There is no Action mapped for namespace [/xxx] and action name [xxx!yyy] a)
- struts2 dwr There is no Action mapped for action ... 原因及解决方案