日期:2014-05-16  浏览次数:20432 次

JSP引进JS文件出现中文乱码的解决方法

<jsp-config>
        <jsp-property-group>
            <description> 
                 Special property group for JSP Configuration JSP example.
            </description>
            <display-name>JSPConfiguration</display-name>
            <url-pattern>*.jsp</url-pattern>
            <el-ignored>true</el-ignored>
            <page-encoding>UTF-8</page-encoding>
            <scripting-invalid>false</scripting-invalid>
            <include-prelude></include-prelude>
            <include-coda></include-coda>


            <description> 
                 Special property group for JSP Configuration JSP  example.
            </description>
            <display-name>JSPConfiguration</display-name>
            <url-pattern>*.html</url-pattern>
            <el-ignored>true</el-ignored>
            <page-encoding>UTF-8</page-encoding>
            <scripting-invalid>false</scripting-invalid>
            <include-prelude></include-prelude>
            <include-coda></include-coda>


            <description> 
                 Special property group for JSP Configuration JSP  example.
            </description>
            <display-name>JSPConfiguration</display-name>
            <url-pattern>*.txt</url-pattern>
            <el-ignored>true</el-ignored>
            <page-encoding>UTF-8</page-encoding>
            <scripting-invalid>false</scripting-invalid>
            <include-prelude></include-prelude>
            <include-coda></include-coda>


            <description> 
                 Special property group for JSP Configuration JSP  example.
            </description>
            <display-name>JSPConfiguration</display-name>
            <url-pattern>*.js</url-pattern>
            <el-ignored>true</el-ignored>
            <page-encoding>UTF-8</page-encoding>
            <scripting-invalid>false</scripting-invalid>
            <include-prelude></include-prelude>
            <include-coda></include-coda>
        </jsp-property-group>
    </jsp-config>