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  并将该项优先就可以了

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-02-17
  • 2021-05-22
  • 2021-12-18
  • 2021-09-15
  • 2021-09-07
  • 2022-12-23
  • 2021-09-17
猜你喜欢
  • 2021-09-09
  • 2022-02-16
  • 2021-10-14
  • 2021-12-13
  • 2022-03-10
  • 2022-02-10
相关资源
相似解决方案