【bug日常】struts报错: There is no Action mapped for namespace [/] and action name [login] associated ...

来源:互联网 发布:腾讯抄袭 知乎 编辑:程序博客网 时间:2024/06/06 17:20
今天上课练习Struts时,一直报错 There is no Action mapped for namespace [/] and action name [login] associated with context path [/testStructs].![这里写图片描述](http://img.blog.csdn.net/20170410133708578?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvSmlvamlvXw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)仔细检查步骤也没有什么问题,后来发现是一个小细节,struts.xml应该在src文件夹下,痛哭(>﹏<)

这里写图片描述

0 0