There is no Action mapped for namespace /xxx and action name xxxAction

错误原因查找:

1. 查看你的struts.xml 文件是否在src目录下;

2. 查看你的struts.xml语法是否正确;

3. 确认一下你是否在添加了<action><result></result></action>之后有没有重启tomcat,有没有重新build你的项目文件;(有可能是,你做的struts配置一个action之后,又去做了很久其他修改操作,忘记重启tomcat,当执行action的时候报这样的错误。)

4. 你的页面中的action可能需要添加namespace参数;

你可能感兴趣的:(struts)