struts2中jsp页面表单提交到action中文乱码问题
时间:2010-12-28 来源:moorui
  直接在struts.xml文件中<struts> 标签内部添加一句如下代码: 
  <constant name="struts.i18n.encoding" value="gbk" />
注意:如果你jsp页面中使用的是utf-8格式,那么此处也写成utf-8格式。
 相关阅读 更多 + 
    
  时间:2010-12-28 来源:moorui
  直接在struts.xml文件中<struts> 标签内部添加一句如下代码: 
  <constant name="struts.i18n.encoding" value="gbk" />
注意:如果你jsp页面中使用的是utf-8格式,那么此处也写成utf-8格式。