使用struts2.2.3的dojo datetimepicker控件时在九月份之后出现乱码,
原因就是struts2-dojo-plugin-2.2.3.jar包下的dojo_zh.js或者dojo_zh-cn.js文件中的中文出现了乱码。

解决方法:将jar包中org\apache\struts2\static\dojo\nls 文件下的
dojo_zh.js或者dojo_zh-cn.js的乱码修正;
在使用的jsp页面的sx:head标签加上locale=”zh” parseContent=”true”项

 

1 <sx:head debug="true" 
2 locale="zh" 
3 parseContent="true" 
4 extraLocales="en-us,zh-cn,de-de" 
5 />

80eye

相关文章:

  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-05-29
  • 2021-09-07
  • 2022-02-10
  • 2021-08-24
猜你喜欢
  • 2022-03-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-11-23
  • 2021-08-08
  • 2021-12-04
相关资源
相似解决方案