How can one specify use of an external compiler to compile JSP files?

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?]

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact