Webwork+velocity Chinese Problem Resolution: 1, Webwork.properties file, add:
webwork.i18n.encoding = GB2312
It is primarily used to set the encoding of the WebWork UI tag library If it is not set to pass
System.getproperty ("file.encoding") to obtain the default character encoding. 2, Velocity.properties file, add:
It is used to set the. VM page encoding 3, write a filter, set the encoding to GB2312. For details, see the Setcharacterencodingfilter file and Web.xml configuration in the attachment.
it resolves the encoding when the action data is passed. Recommendation: Chinese code recommended unified use: GBK, its character set is more complete than GB2312.
(keywords: Java, JSP, Servlet, template, templates, Apache, Jakarta, Velocity webwork)