然后需要创建一个资源文件ApplicationResource.properties,文件中的内容如下:
page.wel=Welcom
如果想把英文显示转换为中文,那么需要先创建一个临时的中文资源文件ApplicationResource_temp.properties,例如,page.wel=欢迎,接着对临时中文资源文件进行编码转换。可以使用myeclipse的插件,也可以在命令模式下执行如下命令:
native2ascii-encoding gb2312 ApplicationResource.properties ApplicationResource_zh_CN.properties
最后,把资源文件ApplicationResource_zh_CN.properties添加到相应的struts-config.xml配置文件中即可。
北京校区