There is no Action mapped for namespace [/] and action name [] associated with context path [/web01].
最近在学习ssh框架,其中在学struts2时,跟着视频写了一个LoginAction,
视频教程里面的可以运行出现jsp页面的内容,但我比对了一下,每个内容都
一样,就是报404错误,也就是“There is no Action mapped for namespace
[/] and action name [] associated with context path [/web01].”
我记得之前学习SSM框架时,提到了web.xml配置文件中welcome-file标
签,是将登陆页面写上的,于是我将我的jsp页面写入,运行成功,得到了
预期的结果。
出现这种错误的原因有很多种,比如action的name写错,包名重复等等,
我这种就是出现在了welcome-file标签上了。