/** * @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 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(); }
/** * @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); } }
/** * @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); } }
ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath()); String classpath = ch.getClassPath(); if (LOG.isDebugEnabled()) LOG.debug("classpath=" + classpath);