private JspCompilationContext createCompilationContext( Request req,
String jspFile,
Options opt,
Mangler mangler)
{
JasperEngineContext ctxt = new JasperEngineContext();
ctxt.setServletClassName( mangler.getClassName());
// ctxt.setJspFile( req.servletPath().toString());
ctxt.setJspFile( jspFile );
ctxt.setClassPath( computeClassPath( req.getContext()) );
// System.out.println("computeClasspath:"+ctxt.getClassPath());
ctxt.setServletContext( req.getContext().getFacade());
ctxt.setOptions( opt );
ctxt.setClassLoader( req.getContext().getClassLoader());
ctxt.setOutputDir(req.getContext().getWorkDir().getAbsolutePath());
return ctxt;
}