`
charleszhu
  • 浏览: 4625 次
  • 性别: Icon_minigender_1
  • 来自: 桂林
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
为了解决form提交到action中的中文参数乱码问题。 1.在struts2-core-2.0.0-SNAPSHOT.jar包中路径为struts2-core-2.0.6\org\apache\struts2有一个default.properties 文件,把struts.i18n.encoding=UTF-8改为struts.i18n.encoding=GBK 2.或者在struts.xml文件内添加常量: <constant name="struts.i18n.encoding" value="GBK"/>
Global site tag (gtag.js) - Google Analytics