Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Architecture & Framework » WebWork 1 & 2  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
话题被移动
该话题已被移动 - why , 2005-05-10 20:56
如果您尚不清楚该话题被移动的原因,请参考论坛规则以及本版公告或者联系本版版主。
作者 小妹有个小问题 (webwork怎么实现国际化?)
zhujing





发贴: 8
积分: 0
于 2005-05-05 08:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
webwork怎么实现国际化?

why edited on 2005-05-05 09:34

作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2005-05-05 09:35 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Transparent web-app I18N
http://wiki.opensymphony.com/pages/viewpage.action?pageId=10



作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
jigsaw

KK

CJSDN高级会员


发贴: 3666
积分: 93
于 2005-05-05 11:57 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
why edited on 2005-05-05 09:34 ---

why 做了什么。。。肯定是把ppmm的相片删掉了。。。



No one knows except both of us.
909090909090909090909090909090909090909090b8533ce76c8d6c241868968a0408c338b4ffbf
ISO/IEC 9899:1999
作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
zhujing





发贴: 8
积分: 0
于 2005-05-05 15:54 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有没有象Struts做几个properties对应文件实现国际化的方式啊?我觉得struts那种方式比较方便啊


作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:jigsaw]
why

問題兒童

总版主


发贴: 4629
积分: 388
于 2005-05-06 00:11 user profilesend a private message to usersend email to whysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jigsaw wrote:
why edited on 2005-05-05 09:34 ---

why 做了什么。。。肯定是把ppmm的相片删掉了。。。

I only added the Subject line "(webwork怎么实现国际化?)".
Actually I should have deleted the post since it does not have a meaningful Subject.



作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
jigsaw

KK

CJSDN高级会员


发贴: 3666
积分: 93
于 2005-05-06 01:23 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
哈~ 开个玩笑的。。。这个帖子我比你先看到。。。如果我能删贴 你就看不到啦。。。


No one knows except both of us.
909090909090909090909090909090909090909090b8533ce76c8d6c241868968a0408c338b4ffbf
ISO/IEC 9899:1999
作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-05-06 10:32 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你没注意我们俩都升成十袋 元老了,这样的玩笑能开吗?

哈~ 我也在开个玩笑!



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-05-06 10:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
http://www.opensymphony.com/webwork/wikidocs/Internationalization.html
http://www.opensymphony.com/webwork_old/howto-i18n.html

you may search/google around.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
zhujing





发贴: 8
积分: 0
于 2005-05-06 18:28 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
但是我实现非Bean内其他字符的国际化那?难道也非要写一个Bean再做个Bean的properties文件?怎么还是觉得Struts这方面好点啊。
个人觉得webwork的优点是把Action同servletAPI分离,提高测试可行性,配合敏捷编程加测试驱动开发极好。但是其他方面譬如,验证框架,分解视图等并没有struts的好用,以及它的显示标签输出的代码质量也不好,textfield就是。要是这个能好用就好了



作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
zhujing





发贴: 8
积分: 0
于 2005-05-06 18:36 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
希望研究webwork的资料多起来,资料太少了


作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
mmwy





发贴: 127
积分: 70
于 2005-05-07 09:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
zhujing wrote:
但是我实现非Bean内其他字符的国际化那?难道也非要写一个Bean再做个Bean的properties文件?怎么还是觉得Struts这方面好点啊。
个人觉得webwork的优点是把Action同servletAPI分离,提高测试可行性,配合敏捷编程加测试驱动开发极好。但是其他方面譬如,验证框架,分解视图等并没有struts的好用,以及它的显示标签输出的代码质量也不好,textfield就是。要是这个能好用就好了


它的标签是velocity写的一些模板,在classpath:/simple和/xhtml下面,你完全可以自己写一套,或者是修改

要用i18n和validation的话,不能用simple的标签,只能用默认的xhtml的。

看xhtml的模板源码就知道了,会加一堆的table之类的html代码,界面很难控制,我上次做一个小东西,要用validation,最后只能扔掉taglib,直接用html干活,validation用了自己写的freemarker macro实现

<#macro showErrorMessage local>
  <#if
    fieldErrors?has_content &&
    fieldErrors[local]?exists
  >
    <br>
    <font color="red">
      <#list fieldErrors[local] as error>
        ${error}
      </#list>
    </font>
  </#if>
</#macro>



作者 Re:小妹有个小问题 (webwork怎么实现国际化?) [Re:zhujing]
cf9806





发贴: 1
积分: 0
于 2005-05-07 20:42 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
顶一下



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923