破门点滴   本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告
不得窥道门,不得悟佛门,不得入窄门,实乃破门。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:破门点滴
日志总数:161
评论数量:404
留言数量:-2
访问次数:1420858
建立时间:2004年11月13日




 

[开发笔记]Triones Runtime : 对xWork Result 的支持
心得体会,  软件技术

破门 发表于 2005/1/16 22:59:35

考虑xWork Result 的支持,以及与Turbine View的连接: 第一步:处理xwork 的result。 根据xwork的扩展方式,在TrionesActionInvocation中覆盖了 createResult方法: Result createResult() throws Exception {         // 根据Result Name 加载结果         result = (Result) proxy.getConfig().getResults().get(resultCode);         return result;     } 由于在Eclipse环境下类加载方式的不同,因此还必须修订配置方法中有关result的处理。在TrionesActionConfiguration中修订 getTrionesActionConfig方法。               …. // 设置results         HashMap results = new HashMap();         Iterator it = actionInfo.getResults();         while(it.hasNext()) {             TrionesResultInfo   resultInfo = (TrionesResultInfo) it.next();             Object result = resultTypes.get(resultInfo.getNamespace() + "." + resultInfo.getType());             // 设置 ResultConfig             ResultConfig resultConfig = new ResultConfig(); //          (TrionesResultInfo) resultTypes.get(resultName);             // TODO 需要真正的类名             resultConfig.setClassName(result.getClass().getName());             resultConfig.setName(resultInfo.getName());             // TODO 对Result的 Parameters 支持             resultConfig.setParams(null); //这里原来按照xwork做法,放入resultConfig对象,但是不能正常处理 //因此暂时改为直接放入 result对象。             results.put(resultInfo.getName(), result);         }         actionConfig.setResults(results);


阅读全文(2338) | 回复(2) | 编辑 | 精华
 


 

回复:对xWork Result 的支持-运行输出
心得体会,  软件技术

破门发表评论于2005/1/16 23:01:35

[Triones] controllerInfo = webwork [Triones] controllerID = org.softme.triones.runtime.TrionesWebworkController action= - org.softme.triones.hello.HelloAction2 ---Hello by xwork Interceptor! doHello() --Hello by xWork Action! ---Hello by xwork result! <br>--Hello by Result!  


个人主页 | 引用回复 | 主人回复 | 返回 | 编辑 | 删除
 


» 1 »

发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.219 second(s), page refreshed 144762702 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号