struts中得到result值
来源:互联网 发布:js 正则判断 编辑:程序博客网 时间:2024/06/14 04:03
在struts2中可以利用拦截器得到result值:
code:
String resultCode = invocation.invoke();//invoke()方法调用下一个拦截器返回result结果如:"success"
ActionProxy actionProxy = invocation.getProxy();//得到Action的代理,操作action
ActionConfig actionConfig = actionProxy.getConfig();//得到actionConfig
Map<String, ResultConfig> resultConfigMap = actionConfig.getResults(); //判断null为了异步提交
ResultConfig resultConfig = resultConfigMap.get(resultCode);
Map<String, String> paramsMap = resultConfig.getParams(); //被访问页面的路径
String visitedPagePath = paramsMap.get("location");//得到路径
仅用于个人备忘。。。。
- struts中得到result值
- Struts中配置的result
- [Struts2]struts.xml中result的path
- Struts中result类型:四种
- 关于struts中result的一点记录
- struts中出现找不到action和result
- 解析Struts中Result的配置
- struts中no result define for ×××Action
- struts.xml中result的学习
- struts result
- Struts中struts.xml配置文件的主要元素(result)
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- Struts2中Action有返回值,则在struts的配置文件中一定要配置result否则会报错:No result defined for action com.supermap.earth.ri
- struts中警告: Could not find action or result,问题
- 页面跳转,特别是struts.xml中result带参数实现
- Struts中提示Invalid result location value/parameter
- 提高SQL执行效率的几点建议
- SSH session连接关闭问题的解决
- 9月22日
- 面对差评的作者们
- 一个木马需要实现的功能
- struts中得到result值
- semop系统调用
- 二十四自我观
- MSSQL escape的主要用途
- 获取本地Mac地址,服务器IP,及验证
- 自己生日,结个段落
- 清理Windows系统目录下几大无用文件夹
- Blog。。。
- XP下asp.net用户的设置问题