freemarker在struts2下的编码问题
Webwork2中,可以在FTL模板中使用GBK编码,然后用UTF-8输出
webwork.propertieswebwork.il8n.encoding = UTF-8
freemarket.propertiesdefault_encoding = UTF-8
welcome.ftl<#ftl attributes={"content_type":"text/html; charset=UTF-8"}>doExcute(...) { template.setEncoding("UTF-8");}