1. Add: XML Version = "1.0" Encoding = "UTF-8"?> Note: Yes" Web-App_2_3.dtd "instead of" web-app_2_2.dtd "
2. Then add: set character encoding filter-name> gumpgz.Filter.SetChacTerencodingFilter filter-class> Encoding param-name> GB2312 param-value> init-param> ignore param-name> True param-value> set character encoding filter-name> action servlet-name> filter-mapping> Note: "setcharacterencodingfilter" can be found in Tomcat / WebAPPS / Filters. Encoding must write "GB2312" and cannot write "GBK"
3. Add: <% @ page contenttype = "text / html; charSet = GB2312"%>
This method is tested, and the test is tested in Struts and other.