1.有中文提交最好不用get請求
2 <constant name="struts.i18n.encoding" value="GBK"/> struct.xml中配置解決中文問題
internationalization i->n中有18個字符。
struct2.1.6之前加這個不能解決中文問題<這是一個BUG>
解決辦法
<filter-class >org.apache.struts2.dispatcher.FilterDispatcher</filter> 2.0的filter
替換 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAnd。。
在將來項目整合的時候可以用spring處理中文亂碼問題。
struct2.1.7將解決這個BUG
struts.i18n.encoding 配置參照 default.property(j)