velocity struts2 乱码问题

来源:互联网 发布:windows.h 下载 编辑:程序博客网 时间:2024/06/10 03:15

使用:velocity,struts2.0.11 

在velocity.properties文件中设置:

default.contentType=text/html
input.encoding=GBK
output.encoding=GBK

结果vm文件中还是,显示乱码。

我在struts2.properties中加上:struts.i18n.encoding=gb2312

这样浏览器正常.一切ok。

 

 

原创粉丝点击