There is no Action mapped for namespace / and action name

HTTP STRUTS 404 - There is no Action mapped for namespace [/] and action name [str] associated with context path [/___]

1,struts.xml文件名错误。一定要注意拼写问题;

2,struts.xml文件放置路径错误。一定要将此文件放置在src目录下。编译成功后,要确认是否编译到classes目录中;

3,struts.xml文件内容错误;

4,删掉struts.xml的namespace。

猜你喜欢

转载自blog.csdn.net/sijaycheng/article/details/79342026