1. First download apache-ant-1.6.5-bin.zip, put the ant. jar in the Tomcat COM/lib directory, and delete the jasper-compiler-jdt.jar under COM/lib.
2. overwrite the following content to the corresponding web. xml location under tomcat/CON/(that is, the corresponding code in <servlet-Name> JSP </servlet-Name> ).
<Servlet>
<Servlet-Name> JSP </servlet-Name>
<Servlet-class> org. Apache. Jasper. servlet. jspservlet </servlet-class>
<Init-param>
<Param-Name> fork </param-Name>
<Param-value> false </param-value>
</Init-param>
<Init-param>
<Param-Name> xpoweredby </param-Name>
<Param-value> false </param-value>
</Init-param>
<Init-param>
<Param-Name> compilersourcevm </param-Name>
<Param-value> 1.5 </param-value>
</Init-param>
<Init-param>
<Param-name> compilerTargetVM </param-name>
<Param-value> 1.5 </param-value>
</Init-param>
<Load-on-startup> 3 </load-on-startup>
</Servlet>