编码方法),这样转来转去就乱码了^_^。解决方法如下:
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
struts.devMode=false
struts.enable.DynamicMethodInvocation=true
struts.i18n.reload=true
struts.ui.theme=simple
struts.locale=zh_CN
struts.i18n.encoding=UTF-8
struts.serve.static.browserCache=false
struts.url.includeParams=none
其中locale、encoding就是字符集的设定了。
<!-- zh-cn encoding -->
纠结了两三个小时,试过N多中方法,最终还是通过方法2解决的!