在web.xml中加入:
<jsp-config>
<jsp-property-group>
<description>Treat .js(Dynamic JS) as JSP file</description>
<display-name>JS</display-name>
<url-pattern>*.js</url-pattern>
<el-ignored>false</el-ignored>
<page-encoding>utf-8</page-encoding>
<scripting-invalid>false</scripting-invalid>
<is-xml>false</is-xml>
</jsp-property-group>
</jsp-config>
沒有留言:
張貼留言