Project java with struts and tomcat encoding UTF-8 for POST requests -
i'm trying save data in utf-8, i'm getting problems encoding :
in post request, when watch firebug can see post request "content-type: text/html".
however, when watch action, httpservletrequest object has object connector attribute uriencoding = utf-8 jsp page encoding in utf-8, (firefox told me , checked notepad++) put -dfile.encoding="utf-8" in debug configurations/arguments tomcat server have uriencoding = utf-8 in file server.xml @ right connector, , in file web.xml have following filter :
<filter> <filter-name>setcharacterencodingfilter</filter-name> <filter-class>org.apache.catalina.filters.setcharacterencodingfilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>utf-8</param-value> </init-param> </filter>
what doing wrong, can me ?
Comments
Post a Comment