Struts2中关于"There is no Action mapped for namespace / and action name"的原因分析:
1.struts.xml文件配置错误,可能的原因有:
a.struts.xml文件名错误
b.struts.xml文件放置路径错误,一定要放在src目录下
c.struts.xml文件内容错误
2.排除struts.xml文件错误,可能是web.xml文件中的<welcome-file>未配置欢迎页面。
1.struts.xml文件配置错误,可能的原因有:
a.struts.xml文件名错误
b.struts.xml文件放置路径错误,一定要放在src目录下
c.struts.xml文件内容错误
2.排除struts.xml文件错误,可能是web.xml文件中的<welcome-file>未配置欢迎页面。