求救 关于国际化问题

[复制链接]
查看11 | 回复4 | 2005-9-21 01:02:26 | 显示全部楼层 |阅读模式
struts中实现了国际化,会根据不同的资源文件去显示不同的文字。
但具体这个是怎么实现的,谁能告诉一下?
也就是说当浏览器设置的是中文的时候,struts是怎样调用后缀带zh的资源文件的?
回复

使用道具 举报

千问 | 2005-9-21 01:02:26 | 显示全部楼层
I don't know how it do in Struts, but you can get the region from the http head file. then you can use
回复

使用道具 举报

千问 | 2005-9-21 01:02:26 | 显示全部楼层
I don't know how it do in Struts, but you can get the region from the http head file. then you can useafilter or other program to handle.
回复

使用道具 举报

千问 | 2005-9-21 01:02:26 | 显示全部楼层
struts-config.xml中
如:






然后他就会在WEB-INF/classes下找applicationResources_zh_CN.properties
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行