There is no Action mapped for namespace / and action name . - [unknown location] 其中一种解决方法
2013-06-27 15:25
585 查看
我是用maven构建的全注解ssh项目,在action跳转的时候一直报这个错,网上也找了很多资料,没有解决,但是用传统的方法没有问题,就肯定还是注解的问题。最后还是参考的菠萝大象先生的文章。
需要在struts.xml中配置如下属性:
<!-- 配置convention插件默认的根包-->
<constant name="struts.convention.package.locators" value="web"/>
<!-- 搜索此配置下的所有包 -->
<constant name="struts.convention.package.locators.basePackage" value="com.*.demo3"></constant>
<!-- 配置返回页面 -->
<constant name="struts.convention.result.path" value="/web-inf/jsp"></constant>
value的值根据自己项目情况具体设定
需要在struts.xml中配置如下属性:
<!-- 配置convention插件默认的根包-->
<constant name="struts.convention.package.locators" value="web"/>
<!-- 搜索此配置下的所有包 -->
<constant name="struts.convention.package.locators.basePackage" value="com.*.demo3"></constant>
<!-- 配置返回页面 -->
<constant name="struts.convention.result.path" value="/web-inf/jsp"></constant>
value的值根据自己项目情况具体设定
相关文章推荐
- Struts应用出现的错误及解决方法:There is no Action mapped for namespace / and action name login
- struts2关于"There is no Action mapped for namespace / and action name"的解决方法
- weblogic部署war包action不能访问问题解决方法 [There is no Action mapped for namespace / and action name]
- 关于 “There is no Action mapped for namespace / and action name . - [unknown location]” 的解决方法
- Struts2中关于"There is no Action mapped for namespace / and action name"的错误解决
- 解决Struts2报"There is no Action mapped for namespace / and action name"错误
- There is no Action mapped for namespace / and action name 问题的解决办法
- 彻底解决STRUTS2 错误There is no Action mapped for namespace / and action name login
- struts2常见配置解决错误There is no mapped for namespace[/] and action name
- 解决STRUTS2 错误 There is no Action mapped for namespace / and action name
- There is no Action mapped for namespace / and action name login.的解决
- 警告: Could not find action or result There is no Action mapped for namespace / and action name
- There is no Action mapped for namespace [/] and action name [login] associate解决办法 .
- There is no Action mapped for namespace / and action name getEmployee
- eclipse 部署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"的总结
- There is no Action mapped for namespace / and action name getEmployee