今天学struts2的时候遇到了一个问题,就是使用动态方法调用的时候,总出现
There is no Action mapped for namespace [/u] and action name [user!add] associated with context path [/ceshi]. - [unknown location]
琢磨了半天,发现是struts2配置文件中
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
这一句的问题,只要把上面的false改成true即可