String jspUri=file.replace('\\','/');
JspCompilationContext clctxt = new JspCompilationContext
- ( jspUri, false, this, context, null, rctxt );
+ ( jspUri, this, context, null, rctxt );
/* Override the defaults */
if ((targetClassName != null) && (targetClassName.length() > 0)) {
protected String className;
protected String jspUri;
- protected boolean isErrPage;
protected String basePackageName;
protected String derivedPackageName;
protected String servletJavaFileName;
// jspURI _must_ be relative to the context
public JspCompilationContext(String jspUri,
- boolean isErrPage,
Options options,
ServletContext context,
JspServletWrapper jsw,
JspRuntimeContext rctxt) {
this.jspUri = canonicalURI(jspUri);
- this.isErrPage = isErrPage;
this.options = options;
this.jsw = jsw;
this.context = context;
JspServletWrapper jsw,
JspRuntimeContext rctxt,
JarResource tagJarResource) {
- this(tagfile, false, options, context, jsw, rctxt);
+ this(tagfile, options, context, jsw, rctxt);
this.isTagFile = true;
this.tagInfo = tagInfo;
this.tagJarResource = tagJarResource;
return jspUri;
}
- /**
- * Are we processing something that has been declared as an
- * errorpage?
- */
- public boolean isErrorPage() {
- return isErrPage;
- }
-
- public void setErrorPage(boolean isErrPage) {
- this.isErrPage = isErrPage;
- }
-
public boolean isTagFile() {
return isTagFile;
}
AccessController.doPrivileged(new PrivilegedExceptionAction<Object>(){
@Override
public Object run() throws IOException, ServletException {
- serviceJspFile(null, null, jspFile, null, true);
+ serviceJspFile(null, null, jspFile, true);
return null;
}
});
} else {
- serviceJspFile(null, null, jspFile, null, true);
+ serviceJspFile(null, null, jspFile, true);
}
} catch (IOException e) {
throw new ServletException("Could not precompile jsp: " + jspFile, e);
try {
boolean precompile = preCompile(request);
- serviceJspFile(request, response, jspUri, null, precompile);
+ serviceJspFile(request, response, jspUri, precompile);
} catch (RuntimeException e) {
throw e;
} catch (ServletException e) {
private void serviceJspFile(HttpServletRequest request,
HttpServletResponse response, String jspUri,
- Throwable exception, boolean precompile)
+ boolean precompile)
throws ServletException, IOException {
JspServletWrapper wrapper = rctxt.getWrapper(jspUri);
handleMissingResource(request, response, jspUri);
return;
}
- boolean isErrorPage = exception != null;
wrapper = new JspServletWrapper(config, options, jspUri,
- isErrorPage, rctxt);
+ rctxt);
rctxt.addWrapper(jspUri,wrapper);
}
}
/*
* JspServletWrapper for JSP pages.
*/
- public JspServletWrapper(ServletConfig config, Options options, String jspUri,
- boolean isErrorPage, JspRuntimeContext rctxt) {
+ public JspServletWrapper(ServletConfig config, Options options,
+ String jspUri, JspRuntimeContext rctxt) {
this.isTagFile = false;
this.config = config;
unloadByCount = options.getMaxLoadedJsps() > 0 ? true : false;
unloadByIdle = options.getJspIdleTimeout() > 0 ? true : false;
unloadAllowed = unloadByCount || unloadByIdle ? true : false;
- ctxt = new JspCompilationContext(jspUri, isErrorPage, options,
+ ctxt = new JspCompilationContext(jspUri, options,
config.getServletContext(),
this, rctxt);
}