structs 2 从初学者心中的伤 mapped for namespace [/]
来源:互联网 发布:包公权知开封府 编辑:程序博客网 时间:2024/06/01 21:39
开始接触structs2 的时候,总是爆出
HTTP Status 404 - There is no Action mapped for namespace [/] and action name [login] associated with context path [/strutsDemo].
找来找去,也不是道哪里出错了,就知道没有mapping百度了一下,也没有什么结果,学到后面,才知道 原因
接下来看看,我的structs 配置
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="demo" extends="struts-default" namespace="/echo">
<action name="login" class="com.qh.action.LoginAction">
<result name="error">/error.jsp</result>
<result name="success">/success.jsp</result>
</action>
</package>
</struts>
我的默认namespace 是/echo
所以访问的时候 必须是
http://localhost/strutsDemo/echo/login
但是我的success.jsp 是放在更目录下 所以 / 不能省 说来说去,就是一个路劲问题,不懂得小伙伴,看前文路径
分清
/ 根
./ 当前路径
../ 前一个目录
- structs 2 从初学者心中的伤 mapped for namespace [/]
- structs错误--There is no Action mapped for namespace / and action name"
- Struts2的There is not Action mapped for namespace [/] 错误
- There is no Action mapped for namespace
- There is no Action mapped for namespace
- There is no Action mapped for namespace
- There is not Action mapped for namespace [/]
- There is no Action mapped for namespace / and action name login.的解决
- There is no Action mapped for namespace / and action name 问题的解决办法
- struts2的异常There is no Action mapped for namespace / and action name --转
- J2EE Struts2关于"There is no Action mapped for namespace / and action name UserAction"的调试
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- There is no Action mapped for namespace /admin and action name 的一种可能错误
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- 关于struts的There is no Action mapped for namespace [/] and action name....异常
- Struts2中关于"There is no Action mapped for namespace / and action name"的总结
- There is no Action mapped for namespace / and action name"的错误
- foxmail自动接收邮件的时间设置
- Qt——正则表达式
- 计算机程序设计艺术
- cronExpression的配置说明
- Java 四种线程池的用法分析
- structs 2 从初学者心中的伤 mapped for namespace [/]
- Maven探究一:mirror和repository 区别
- 538. Convert BST to Greater Tree | 二叉排序树转换成Greater树
- Android4.4及以上实现透明状态栏
- 七、ASCII
- 源码包管理
- 堆模板
- 第四次也不知道0 0诶 这次好像看不太懂
- int 与 string 之间的转换