Struts2 - Interceptor中取得ActionName、Namespace、Method
来源:互联网 发布:数据库方面的工作 编辑:程序博客网 时间:2024/06/11 00:36
在Struts2的Interceptor中取得当前执行对应的ActionName、Namespace、Method方法:
可以使用:
System.out.println(invocation.getProxy().getNamespace()); System.out.println(invocation.getProxy().getActionName()); System.out.println(invocation.getProxy().getMethod());
其中,Namespace对应的是struts.xml的package的namespace。(其实对应的是URL中的路径)
比如:
有一个URL: http://localhost:8080/test/admin/billing/invoice!add.action
Namespace: /admin/billing
ActionName: invoice
Method:add (默认是execute)
0 0
- Struts2 - Interceptor中取得ActionName、Namespace、Method
- Struts2 - Interceptor中取得ActionName、Namespace、Method
- 在interceptor中获得namespace和actionname
- struts2 拦截器Interceptor中取得request
- struts2 拦截器Interceptor中取得request、response
- struts2 拦截器Interceptor中取得request、response
- Struts2中ActionName-validator.xml文件的配置
- struts2中namespace的用法
- Struts2中namespace的用法
- Struts2中namespace的用法
- Struts2中namespace的用法
- Struts2中namespace的用法
- Struts2中namespace的用法
- struts2中namespace的用法
- Struts2中namespace的用法
- Struts2中namespace的用法
- Struts2中namespace的用法
- struts2配置(namespace,include,method的使用)
- spring security3.x学习(5)_如何拦截用户请求
- 导出为csv文件时的各种中文问题汇总
- 黑马程序员——Java语言基础——08.网络编程
- spring security3.x学习(6)_认证详细流程和认证异常
- 20141419
- Struts2 - Interceptor中取得ActionName、Namespace、Method
- spring security3.x学习(7)_访问决策管理
- 【剑指Offer面试编程题】题目1515:打印1到最大的N位数--九度OJ
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- 泛型的使用介绍及格式总结
- 第17周项目6(2)-学生成绩统计
- matlab如何设定符号运算的有效位数
- 新手/简单的php+mysql的面向对象 增删改查
- XSS 攻击常用脚本