struts国际化问题

来源:互联网 发布:电商购物车数据库设计 编辑:程序博客网 时间:2024/05/16 11:42

struts  中要实现国际化

1,要在资源文件配置语言

如: ApplicationResources.properties 中 有

form.choose=请选择
form.language1=英语
form.language2=中文

ApplicationResources_en_US.properties

中有

form.choose=please choose
form.language1=English
form.language2=Chinese

2 ,页面上的所有静态文字都要用 <bean:message key=""/> 来进行显示

3,设置浏览器 在 internate 选项上找到 语言 并选择 英语()en-US  并将该项优先就可以了

 

 

 

 

原创粉丝点击