sch.setAttribute(DecoratedObjectFactory.ATTR, new DecoratedObjectFactory());
protected Object setAppContextOnAllContextHandlers( final Handler[] handlers ) { for ( int i = 0; i < handlers.length; i++ ) { if ( handlers[i] instanceof ContextHandler ) { ContextHandler ctx = (ContextHandler) handlers[i]; ctx.setAttribute( attributeKey, attribute ); } if ( handlers[i] instanceof HandlerCollection ) { Handler[] handlerList = ( (HandlerCollection) handlers[i] ).getHandlers(); setAppContextOnAllContextHandlers( handlerList ); } } return null; } }
ch.setAttribute( HttpDirectoryService.KEY, new HttpDirectoryService( dirService ) );
sch.setAttribute(DecoratedObjectFactory.ATTR, new DecoratedObjectFactory());
/** * @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(); }
while (names.hasMoreElements()) { String name = (String) names.nextElement(); context.setAttribute(name, _attributes.getAttribute(name));
ch.setAttribute("org.apache.catalina.jsp_classpath", ch.getClassPath());
_contextHandler.setAttribute(OSGiWebappConstants.OSGI_BUNDLECONTEXT, _bundle.getBundleContext());
/** * @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); } }
/** * @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); } }