How can one specify use of an external compiler to compile JSP files?
Created May 8, 2012
Luigi Viggiano
About external compiler - like jikes or other - you have to make a wrapper class implementing
org.apache.jasper.compiler.JavaCompiler
that calls your compiler (with your own parameters), and specify it in web.xml
in a <servlet> section like following:
<init-param>
<param-name>jspCompilerPlugin</param-name>
<param-value>your.package.YourOwnJavaCompiler</param-value>
</init-param>
[See also How can I use jikes with tomcat?]