日期:2014-05-18  浏览次数:20655 次

MyFacesExtensionsFilter javascript中文乱码
web.xml
<?xml   version= "1.0 "   encoding= "gb2312 "?>    
<!DOCTYPE   web-app   PUBLIC   "-//Sun   Microsystems,   Inc.//DTD   Web   Application   2.3//EN "   "http://java.sun.com/dtd/web-app_2_3.dtd ">    
<web-app>    
        <display-name> faces </display-name>    
        <description> faces   system </description>    
   
        <context-param>    
                <param-name> javax.faces.CONFIG_FILES </param-name>    
                <param-value> /WEB-INF/faces-config.xml </param-value>    
        </context-param>    
   
        <!--   MyFacesExtensionsFilter   -->    
        <filter>    
                <filter-name> MyFacesExtensionsFilter </filter-name>    
                <filter-class>    
                        org.apache.myfaces.webapp.filter.ExtensionsFilter      
                </filter-class>    
                <init-param>    
                        <param-name> maxFileSize </param-name>    
                        <param-value> 10m </param-value>    
                        <description>    
                                Set   the   size   limit   for   uploaded   files.   Format:   10   -   10      
                                bytes   10k   -   10   KB   10m   -   10   MB   1g   -   1   GB      
                        </description>    
                </init-param>    
        </filter>    
   
        <!--   extension   mapping   for   adding   <script/> ,   <link/> ,   and   other   resource   tags   to   JSF-pages     -->    
        <filter-mapping>    
                <filter-name> MyFacesExtensionsFilter </filter-name>    
                &