here is no Action mapped for namespace [/user] and action name [user!add] associated with context pa
来源:互联网 发布:js invalid date 判断 编辑:程序博客网 时间:2024/06/05 15:23
Struts2中DMI(动态方法调用)的一些问题
好947
里面并没有excute()方法,这时大家给以这样配置<action name="helloword" class="struts.IndexAction" method="add">就可以返回IndexAction类中add方法的值,
但是这种方法不推荐!推荐的方法是动态调用,也就是DMI.
比如在地址栏中输入URL:http://localhost:8080/struts2/front/helloword!add
但是:如果这样输入的话,会报错(There is no Action mapped for namespace [/front] and action name [helloword!add()] associated with context path [/Struts2_10003].)
因为:struts2中默认不允许使用DMI
所以:需要在配置文件中打开: <constant name="struts.enable.DynamicMethodInvocation" value="true"/>这样大家在地址栏动态输入就可以得到预期的页面
- here is no Action mapped for namespace [/user] and action name [user!add] associated with context pa
- There is no Action mapped for namespace [/] and action name [user!add] associated with context path
- There is no Action mapped for namespace [/user] and action name [user!add] associated with context p
- here is no Action mapped for namespace [/] and action name [Login] associated with context path [].
- Tomcat 启动时 There is no Action mapped for namespace [/] and action name [] associated with context pa
- HTTP Status 404 - There is no Action mapped for namespace [/user] and action name [>] associated wit
- There is no Action mapped for namespace [/] and action name [hello] associated with context path [/
- There is no Action mapped for namespace [] and action name [] associated with context path []
- There is no Action mapped for namespace [/] and action name [upload/] associated with context path
- 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 [] associated with context path [/struts
- There is no Action mapped for namespace [/] and action name [viewLogAction] associated with context
- There is no Action mapped for namespace [/] and action name [login] associated with context path [/M
- There is no Action mapped for namespace [/] and action name [] associated with context path [/dxm__s
- There is no Action mapped for namespace [/] and action name [hello2] associated with context path [/
- struts2配置错误 There is no Action mapped for namespace [/] and action name [] associated with context
- Messages: There is no Action mapped for namespace [/] and action name [] associated with context pat
- There is no Action mapped for namespace [/] and action name [spropertyvalue] associated with context
- USACO Section 1.3 Calf Flac
- 简要说明python的一些基本知识(二)
- 拓扑排序
- 邻接矩阵实现的拓扑排序
- TCP连接建立过程中为什么需要“三次握手”
- here is no Action mapped for namespace [/user] and action name [user!add] associated with context pa
- 通过模块配置apache负载均衡器
- 程序员必知8大排序3大查找(一)
- java 时间格式化
- 胖东来连锁超市发展之道
- 函数式编程扫盲篇
- 1.4.1:jQuery对象和DOM对象
- 蓝色巨人IBM
- 最简单的flex & bison例子