美文网首页CodingStudying
警告: No configuration found for t

警告: No configuration found for t

作者: 7ack | 来源:发表于2016-05-18 10:47 被阅读66次

参考: 警告: 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的属性值要一模一样,不能省略。

相关文章

网友评论

    本文标题:警告: No configuration found for t

    本文链接:https://www.haomeiwen.com/subject/lucwrttx.html