There is no Action mapped for namespace [/] and action name [Login] associated wi
2015-04-29 11:19
447 查看
There is no Action mapped for namespace [/] and action name [Login] associated wi
当你对于这个比较困惑的时候给你几个建议首先检查你的代码和配置文件
这里以我为例,
我做的是一个简单的登陆页面,
三个jsp, 一个LoginAction.java 一个structs.xml 和一个web.xml文件
这是我的报错截图:
如果有看的眼熟的,那么很好,接着看我的几个文件的截图:
LoginAction.java
\
接着是login.jsp
接着是:
web.xml
最后一个structs.xml
不知道你对于报错的信息留意没有,意思是: action的名字是 LoginAction, 最开始写的时候我以为和servlet的一样从jsp的页面表单提交上来的是servlet,其实不是的,应该把提交上来的修改为struct配置的。
应该为和jsp和struct的一致。那么这里我修改了,如图:
这样就可以了。
当你对于这个比较困惑的时候给你几个建议首先检查你的代码和配置文件
这里以我为例,
我做的是一个简单的登陆页面,
三个jsp, 一个LoginAction.java 一个structs.xml 和一个web.xml文件
这是我的报错截图:
如果有看的眼熟的,那么很好,接着看我的几个文件的截图:
LoginAction.java
\
接着是login.jsp
接着是:
web.xml
最后一个structs.xml
不知道你对于报错的信息留意没有,意思是: action的名字是 LoginAction, 最开始写的时候我以为和servlet的一样从jsp的页面表单提交上来的是servlet,其实不是的,应该把提交上来的修改为struct配置的。
应该为和jsp和struct的一致。那么这里我修改了,如图:
这样就可以了。
相关文章推荐
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name [Login] associated wi
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name [Login] associated wi
- struts2出现There is no Action mapped for namespace [/] and action name [Login] associated wi
- IDEA配置Struts2出现There is no Action mapped for namespace [/] and action name [login]
- eclipse中配置struts2出现There is no Action mapped for namespace [/] and action name [Login] associated w
- There is no Action mapped for namespace [/] and action name [login] associate解决办法
- There is no Action mapped for namespace [/] and action name [Login] associated with context path [/e
- There is no Action mapped for namespace [/] and action name [Login] associated with context path [/e
- ssh web项目出现错误There is no Action mapped for namespace [/] and action name [login] associate解决办法
- There is no Action mapped for namespace [/] and action name [Login] associated with context path [/e
- 【bug日常】struts报错: There is no Action mapped for namespace [/] and action name [login] associated ...
- There is no Action mapped for namespace [/] and action name [login] associate解决办法 .
- There is no Action mapped for namespace [/] and action name [login] associated with context path 问题
- HTTP Status 404 - There is no Action mapped for namespace [/] and action name [login!welcome] associ
- There is no Action mapped for namespace [/cargo] and action name [contractAction_list] associated wi
- There is no Action mapped for namespace [/] and action name [login] associate解决办法 .
- There is no Action mapped for namespace [/] and action name [employee_login] associated with context
- There is no Action mapped for namespace [/] and action name [login] associat...问题的另一个思路
- MyEclipse Struts2 There is no Action mapped for namespace [/] and action name [Login]
- message There is no Action mapped for namespace [/] and action name [login] associated with context