struts2 出现There is no Action mapped for action name XX 问题可从以下查找原因:
1、struts.xml文件确实没有配置,或action的名子出错
2、配置包名时,继承extends的包是不是写错了 如 <package name="login" extends="struts-defaut"> 中extends="struts-defaut" 应该为struts-default 。少了一个l
3、分模块情况下,配置该action的文件不是struts.xml 文件,却没有在struts.xml文件中include进来。
本文探讨了 Struts2 框架中出现 There is no Action mapped for action name 错误的原因及解决办法,包括检查配置文件、包名继承及模块配置等问题。
738

被折叠的 条评论
为什么被折叠?



