Package 层次关系 为了把 #5 阐述清楚, 当它在一个包的层次中遍历的时候, WebWork会寻找一个叫package.properties的文件: com/ acme/ package.properties actions/ package.properties FooAction.java FooAction.properties 如果 FooAction.properties 不存在,就会寻找com/acme/action/package.properties, 如果没有找到 com/acme/package.properties, 如果没有找到 com/package.properties, 依此类推. |
Content pulled from external source. Click here to refresh. |
<ww:property value="getText('some.key')" /> |
Content pulled from external source. Click here to refresh. |
<ww:text name="some.key" /> |
Content pulled from external source. Click here to refresh. |
<ww:i18n name="some.package.bundle" > <ww:text name="some.key" /></ww:i18n> |
在SiteMesh的装饰页面里面使用国际化是可能的,但是存在几个怪异之处.查阅 SiteMesh 页面来了解如何整合WebWork和SiteMesh,包括整合的技巧. |
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |