写了struts2一个加载gridpanel的action在里面没有用excute方法,而是单独写了findDocument方法,在配置时老是提示there is no action mapped for namespace action name,一个很常见的提示,开始以为是配置错误,后来才发现是struts文档中<constant name="struts.enable.DynamicMethodInvocation" value="false">不知道什么时候配的,改成true就可以了,这是struts允许动态方法调用的配置
there is no action mapped for namespace action name的一种情况
最新推荐文章于 2022-12-04 10:35:19 发布
本文介绍了解决Struts2中动态方法调用问题的方法。通过调整配置文件中的<constant name=struts.enable.DynamicMethodInvocation value=false>为true, 成功实现了findDocument方法的调用。
740

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



