今天学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即可
本文介绍了一个在学习Struts2过程中遇到的问题,即使用动态方法调用时出现找不到映射的问题。通过调整struts2配置文件中的动态方法调用设置,将struts.enable.DynamicMethodInvocation的值从false改为true,成功解决了该问题。
978

被折叠的 条评论
为什么被折叠?



