JspCompilationContext ctxt = new JspEngineContext(parentClassLoader,
classpath, context, jspUri,
false, options,
req, res);
Compiler compiler = ctxt.createCompiler();
if (checkJSPmods) {
// set the time that the jsp file has last been checked for
// being outdated and the JSP last mod time
lastCheckedTime = System.currentTimeMillis();
jspLastModifiedTime = jspFile.lastModified();
}
// compile and load the JSP
try {
compiler.compile();
loadAndInit();
} catch (JasperException ex) {
compileException = ex;
} catch (FileNotFoundException ex) {
compiler.removeGeneratedFiles();
throw ex;
} catch (Exception ex) {
compileException = new JasperException(
Constants.getString("jsp.error.unable.compile"), ex);
}