There is no Action mapped for namespace

404错误There is no Action mapped for namespace / and action name studentRegisterAction.

![图片说明](https://img-ask.csdn.net/upload/201511/15/1447560593_877619.png)图片说明

这是我的struts.xml
图片说明

处理方法:检查struts.xml是否在src目录下;
struts.xml文件是否编写正确
.-----
首先查看你的
struts.xml 
文件是否在
src
目录下;
 
2.-----
检查
struts.xml
文件的语法是否正确
.-----
首先查看你的
struts.xml 
文件是否在
src
目录下;
 
2.-----
检查
st......
答案就在这里:There is no Action mapped for namespace
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

这个比较明显是action没有映射的问题,建议把action中的name改成studentRegisterAction

页面访问地址应该是配置文件中的action的name属性,很明显没有name属性为studentRegisterAction的action

action中没有指定执行的方法,即method的话,则默认执行Action里的execute方法,这是一个问题,然后请求的action应该与struts.xml中配置的name对应

错误提示,资源不存在,说明你的url写错了,导致找不到资源,写url请求的时候写name的值,不要写studentRegisterAction

你的action 配置文件中没有对studentRegisterAction的映射配置,这个studentRegisterAction是你定义的一个action类,而不是具体的某个action.
你修正下你的jsp页面引用的action名称,你配置了俩Action分别是studuentInfoCollector和studentInfoShow,看下你的jsp到底是引用的哪个actin.