CodingStudying

警告: No configuration found for t

2016-05-18  本文已影响66人  7ack

参考: 警告: No configuration found for the specified action: '' in namespace: ''.的解决办法

在学习struts2的时候经常遇到 No configuration found for the specified action: '' in namespace: ''.的错误,于是上网查了一下,找到了很好的解决方法。

在jsp页面的form标记里加上属性 namespace="/",即:
<s:form action=" " method=" " namespace="/">

总之,jsp文件与struts.xml配置的namespace的属性值要一模一样,不能省略。

上一篇下一篇

猜你喜欢

热点阅读