> From: Mark Claassen [mailto:[EMAIL PROTECTED] 
> Subject: RE: Using Javac instead of JDT to compile JSPs
> 
> <param-name>compiler</param-name>

Looking at the code in org.apache.jasper.EmbeddedServletOptions, it
appears the parameter name should be "compilerClassName" rather than
"compiler".  If compilerClassName is null, the following somewhat odd
code in org.apache.jasper.JspCompilationContext is executed:

if (options.getCompiler() == null) {
    jspCompiler =
createCompiler("org.apache.jasper.compiler.JDTCompiler");
    if (jspCompiler == null) {
        jspCompiler =
createCompiler("org.apache.jasper.compiler.AntCompiler");
    }
} else {
    jspCompiler =
createCompiler("org.apache.jasper.compiler.AntCompiler");
    if (jspCompiler == null) {
        jspCompiler =
createCompiler("org.apache.jasper.compiler.JDTCompiler");
    }
}

It appears the value of "compiler" is ignored, which explains why the
JDT compiler keeps getting used.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to