if ((descriptor != originDescriptor) && !holder.getInitParameter(pname).equals(pvalue)) throw new IllegalStateException("Mismatching init-param "+pname+"="+pvalue+" in "+descriptor.getResource()); break;
out.openTag("init-param",origin(md,ot + "init-param." + p)) .tag("param-name",p) .tag("param-value",holder.getInitParameter(p)) .closeTag();
/** * @throws Exception if unable to init the JSP Servlet */ protected void initJspServlet () throws Exception { ContextHandler ch = ContextHandler.getContextHandler(getServletHandler().getServletContext()); /* Set the webapp's classpath for Jasper */ ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath()); /* Set up other classpath attribute */ if ("?".equals(getInitParameter("classpath"))) { String classpath = ch.getClassPath(); if (LOG.isDebugEnabled()) LOG.debug("classpath=" + classpath); if (classpath != null) setInitParameter("classpath", classpath); } /* ensure scratch dir */ File scratch = null; if (getInitParameter("scratchdir") == null) { File tmp = (File)getServletHandler().getServletContext().getAttribute(ServletContext.TEMPDIR); scratch = new File(tmp, "jsp"); setInitParameter("scratchdir", scratch.getAbsolutePath()); } scratch = new File (getInitParameter("scratchdir")); if (!scratch.exists()) scratch.mkdir(); }
/** * @throws Exception if unable to init the JSP Servlet */ protected void initJspServlet () throws Exception { ContextHandler ch = ContextHandler.getContextHandler(getServletHandler().getServletContext()); /* Set the webapp's classpath for Jasper */ ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath()); /* Set up other classpath attribute */ if ("?".equals(getInitParameter("classpath"))) { String classpath = ch.getClassPath(); if (LOG.isDebugEnabled()) LOG.debug("classpath=" + classpath); if (classpath != null) setInitParameter("classpath", classpath); } /* ensure scratch dir */ File scratch = null; if (getInitParameter("scratchdir") == null) { File tmp = (File)getServletHandler().getServletContext().getAttribute(ServletContext.TEMPDIR); scratch = new File(tmp, "jsp"); setInitParameter("scratchdir", scratch.getAbsolutePath()); } scratch = new File (getInitParameter("scratchdir")); if (!scratch.exists()) scratch.mkdir(); }
if ("?".equals(getInitParameter("classpath"))) if (getInitParameter("scratchdir") == null) scratch = new File (getInitParameter("scratchdir")); if (!scratch.exists()) scratch.mkdir();
/** * @throws Exception */ protected void initJspServlet () throws Exception { ContextHandler ch = ((ContextHandler.Context)getServletHandler().getServletContext()).getContextHandler(); /* Set the webapp's classpath for Jasper */ ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath()); /* Set the system classpath for Jasper */ setInitParameter("com.sun.appserv.jsp.classpath", Loader.getClassPath(ch.getClassLoader().getParent())); /* Set up other classpath attribute */ if ("?".equals(getInitParameter("classpath"))) { String classpath = ch.getClassPath(); LOG.debug("classpath=" + classpath); if (classpath != null) setInitParameter("classpath", classpath); } }
/** * @throws Exception */ protected void initJspServlet () throws Exception { ContextHandler ch = ((ContextHandler.Context)getServletHandler().getServletContext()).getContextHandler(); /* Set the webapp's classpath for Jasper */ ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath()); /* Set the system classpath for Jasper */ setInitParameter("com.sun.appserv.jsp.classpath", Loader.getClassPath(ch.getClassLoader().getParent())); /* Set up other classpath attribute */ if ("?".equals(getInitParameter("classpath"))) { String classpath = ch.getClassPath(); LOG.debug("classpath=" + classpath); if (classpath != null) setInitParameter("classpath", classpath); } }
/** * @throws Exception */ protected void initJspServlet () throws Exception { ContextHandler ch = ContextHandler.getContextHandler(getServletHandler().getServletContext()); /* Set the webapp's classpath for Jasper */ ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath()); /* Set the system classpath for Jasper */ setInitParameter("com.sun.appserv.jsp.classpath", Loader.getClassPath(ch.getClassLoader().getParent())); /* Set up other classpath attribute */ if ("?".equals(getInitParameter("classpath"))) { String classpath = ch.getClassPath(); LOG.debug("classpath=" + classpath); if (classpath != null) setInitParameter("classpath", classpath); } }
/** * @throws Exception */ protected void initJspServlet () throws Exception { ContextHandler ch = ContextHandler.getContextHandler(getServletHandler().getServletContext()); /* Set the webapp's classpath for Jasper */ ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath()); /* Set the system classpath for Jasper */ setInitParameter("com.sun.appserv.jsp.classpath", Loader.getClassPath(ch.getClassLoader().getParent())); /* Set up other classpath attribute */ if ("?".equals(getInitParameter("classpath"))) { String classpath = ch.getClassPath(); LOG.debug("classpath=" + classpath); if (classpath != null) setInitParameter("classpath", classpath); } }
/** * @throws Exception */ protected void initJspServlet () throws Exception { ContextHandler ch = ((ContextHandler.Context)getServletHandler().getServletContext()).getContextHandler(); /* Set the webapp's classpath for Jasper */ ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath()); /* Set the system classpath for Jasper */ setInitParameter("com.sun.appserv.jsp.classpath", Loader.getClassPath(ch.getClassLoader().getParent())); /* Set up other classpath attribute */ if ("?".equals(getInitParameter("classpath"))) { String classpath = ch.getClassPath(); LOG.debug("classpath=" + classpath); if (classpath != null) setInitParameter("classpath", classpath); } }
if ((descriptor != originDescriptor) && !holder.getInitParameter(pname).equals(pvalue)) throw new IllegalStateException("Mismatching init-param "+pname+"="+pvalue+" in "+descriptor.getResource()); break;
if (!holder.getInitParameter(pname).equals(pvalue)) throw new IllegalStateException("Mismatching init-param "+pname+"="+pvalue+" in "+descriptor.getResource()); break; if (holder.getInitParameter("scratchdir") == null)
if (!holder.getInitParameter(pname).equals(pvalue)) throw new IllegalStateException("Mismatching init-param "+pname+"="+pvalue+" in "+descriptor.getResource()); break; if (holder.getInitParameter("scratchdir") == null)
if (!holder.getInitParameter(pname).equals(pvalue)) throw new IllegalStateException("Mismatching init-param "+pname+"="+pvalue+" in "+descriptor.getResource()); break; if (holder.getInitParameter("scratchdir") == null)
if (!holder.getInitParameter(pname).equals(pvalue)) throw new IllegalStateException("Mismatching init-param "+pname+"="+pvalue+" in "+descriptor.getResource()); break; if (holder.getInitParameter("scratchdir") == null)
if (!holder.getInitParameter(pname).equals(pvalue)) throw new IllegalStateException("Mismatching init-param "+pname+"="+pvalue+" in "+descriptor.getResource()); break; if (holder.getInitParameter("scratchdir") == null)