默认的Struts.xml中是这样的 <constant name="struts.enable.DynamicMethodInvocation" value="false" /> There is no Action mapped for namespace [/xxx] and action name [xxx!yyy] associated with context path [xxx] 这样我们在地址栏输入感叹号动态调用方法的时候会出错,我们只需…
使用struts2.3进行动态方法调用时出现: There is no Action mapped for namespace [/user] and action name [user!add] associated with context path错误,原因是 (1)DMI可能导致安全问题 (2)DMI与通配符方法功能有重叠,因此该版本Struts2默认关闭DMI,需要在struts.xml中加一句 <constant name="struts.enable.DynamicMetho…