struts2避免提交表单产生乱码的web.xml的配置

<filter>
        <filter-name>characterEncodingFilterfilter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilterfilter-class>
        param>
            <param-name>encodingparam-name>
            <param-value>UTF-8param-value>
        param>
        param>
            <param-name>forceEncodingparam-name>
            <param-value>trueparam-value>
        param>
    filter>
    <filter-mapping>
        <filter-name>characterEncodingFilterfilter-name>
        /*
    

你可能感兴趣的:(JAVA基础知识)