在web.xml中的web-app中加入这段话:

 

 1 <jsp-config>
 2     <jsp-property-group>   
 3         <display-name>JSPConfiguration</display-name>   
 4         <url-pattern>*.jsp</url-pattern>   
 5         <el-ignored>true</el-ignored>   
 6         <page-encoding>utf-8</page-encoding>   
 7         <scripting-invalid>false</scripting-invalid>   
 8         <include-prelude></include-prelude>   
 9         <include-coda></include-coda>   
10      </jsp-property-group>
11       <jsp-property-group>
12         <display-name>JSPConfiguration</display-name>   
13         <url-pattern>*.html</url-pattern>   
14         <el-ignored>true</el-ignored>   
15         <page-encoding>utf-8</page-encoding>   
16         <scripting-invalid>false</scripting-invalid>   
17         <include-prelude></include-prelude>   
18         <include-coda></include-coda>
19     </jsp-property-group>
20   </jsp-config>
View Code

相关文章:

  • 2021-09-22
  • 2021-05-16
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2021-12-03
  • 2021-05-26
  • 2021-10-13
猜你喜欢
  • 2021-09-08
  • 2021-05-24
  • 2021-12-20
  • 2022-12-23
  • 2021-10-12
  • 2021-11-23
相关资源
相似解决方案