在配置文件中定义如下常量值配置:
<constant name=”struts.i18n.encoding” value=”UTF-8”/>
注意:只能解决post请求的乱码问题,针对get请求的乱码和jsp中的处理方式一致(需编写相应的代码处理)。