There is no Action mapped for namespace [/] and action name [userAction!add] associated with context path [/StrutsDemo].
1,struts.xml文件名错误2,struts.xml文件放置路径错误。一定要将此文件放置在src目录下。编译成功后,要确认是否编译到classes目录中;
3,在后面加上<constant name="struts.enable.DynamicMethodInvocation" value="true"></constant>
以上内容摘抄于互联网