struts2报错,There is no Action mapped for namespace [/] and action name

来源:互联网 发布:手机淘宝店铺图片尺寸 编辑:程序博客网 时间:2024/04/27 15:09

struts2调用action报错信息:

严重: Could not find action or result

/bridgeMatch/matchInfo!getName.bm

There is no Action mapped for namespace [/] and action name [matchInfo!getName] associated with context path [/bridgeMatch]. - [unknown location]


出现这样的问题,网友都说是因为struts配置文件有问题或者是没有放到class下

还有另外一种手欠的情况,在struts配置文件中添加了

<constant name="struts.enable.DynamicMethodInvocation" value="false" />

导致的不能动态调用方法。改为true即可

0 0
原创粉丝点击