Examples of JspRuntimeContext


Examples of org.apache.jasper.compiler.JspRuntimeContext

        PrintWriter logWriter = new PrintWriter(new StringWriter());
        URL baseUrl = new File(info.getWebRoot()).toURL();
        ServletContext sContext = new JspCServletContext(logWriter, baseUrl);
        ServletConfig sConfig = new MockServletConfig(sContext);
        Options options = createOptions(sContext, sConfig, info);
        JspRuntimeContext rtContext = new JspRuntimeContext(sContext, options);
        JspServletWrapper sWrapper = makeWrapper(sContext, options, rtContext);
        JspCompilationContext cContext = createJspCompilationContext(info, sContext, options,
                rtContext, sWrapper, new StringWriter());
        logCompilation(info.getJspSource(), info.getClassOutputDir());
        compileJspToJava(sWrapper, cContext);
View Full Code Here

Examples of org.apache.jasper.compiler.JspRuntimeContext

    this.context = new JspCompileServletContext(config.getServletContext(),
        bundle);
    this.config = new JspCompileServletConfig(config, this.context);
    options = new EmbeddedServletOptions(this.config, this.context);
    rctxt = new JspRuntimeContext(this.context, options);
  }
View Full Code Here

Examples of org.apache.jasper.compiler.JspRuntimeContext

                 new URL("file:" + uriRoot.replace('\\','/') + '/'));
            tldLocationsCache = TldLocationsCache.getInstance(context);
        } catch (MalformedURLException me) {
            System.out.println("**" + me);
        }
        rctxt = new JspRuntimeContext(context, this);
        jspConfig = new JspConfig(context);
        tagPluginManager = new TagPluginManager(context);
    }
View Full Code Here

Examples of org.apache.jasper.compiler.JspRuntimeContext

                 new URL("file:" + uriRoot.replace('\\','/') + '/'));
            tldLocationsCache = new TldLocationsCache(context, true);
        } catch (MalformedURLException me) {
            System.out.println("**" + me);
        }
        rctxt = new JspRuntimeContext(context, this);
        jspConfig = new JspConfig(context);
        tagPluginManager = new TagPluginManager(context);
    }
View Full Code Here

Examples of org.apache.jasper.compiler.JspRuntimeContext

            tldLocationsCache = new
                TldLocationsCache(context, true);
        } catch (MalformedURLException me) {
            System.out.println("**" + me);
        }
        rctxt = new JspRuntimeContext(context, this);
        jspConfig = new JspConfig(context);
        tagPluginManager = new TagPluginManager(context);
    }
View Full Code Here

Examples of org.apache.jasper.compiler.JspRuntimeContext

  this.context = config.getServletContext();
       
        options = new EmbeddedServletOptions(config, context);

        // Initialize the JSP Runtime Context
        rctxt = new JspRuntimeContext(context,options);

  if (log.isDebugEnabled()) {
      log.debug(Localizer.getMessage("jsp.message.scratch.dir.is",
             options.getScratchDir().toString()));
      log.debug(Localizer.getMessage("jsp.message.dont.modify.servlets"));
View Full Code Here

Examples of org.apache.jasper.compiler.JspRuntimeContext

        loghelper = new Logger.Helper("JASPER_LOG", "JspServlet");

        options = new EmbededServletOptions(config, context);

        // Initialize the JSP Runtime Context
        rctxt = new JspRuntimeContext(context,options);

  Constants.message("jsp.message.scratch.dir.is",
            new Object[] { options.getScratchDir().toString() },
            Logger.INFORMATION );
        Constants.message("jsp.message.dont.modify.servlets",
View Full Code Here

Examples of org.apache.jasper.compiler.JspRuntimeContext

                 new URL("file:" + uriRoot.replace('\\','/') + '/'));
            tldLocationsCache = new TldLocationsCache(context, true);
        } catch (MalformedURLException me) {
            System.out.println("**" + me);
        }
        rctxt = new JspRuntimeContext(context, this);
        jspConfig = new JspConfig(context);
        tagPluginManager = new TagPluginManager(context);
    }
View Full Code Here

Examples of org.apache.jasper.compiler.JspRuntimeContext

  this.config = config;
  this.context = config.getServletContext();

        // Initialize the JSP Runtime Context
        options = new EmbeddedServletOptions(config, context);
        rctxt = new JspRuntimeContext(context,options);

  if (log.isDebugEnabled()) {
      log.debug(Localizer.getMessage("jsp.message.scratch.dir.is",
             options.getScratchDir().toString()));
      log.debug(Localizer.getMessage("jsp.message.dont.modify.servlets"));
View Full Code Here

Examples of org.apache.sling.scripting.jsp.jasper.compiler.JspRuntimeContext

        }
    }

    private JspServletWrapper getJspWrapper(final String scriptName, final SlingBindings bindings)
    throws SlingException {
        JspRuntimeContext rctxt = this.getJspRuntimeContext();

      JspServletWrapper wrapper = rctxt.getWrapper(scriptName);
        if (wrapper != null) {
            if ( wrapper.isValid() ) {
                return wrapper;
            }
            synchronized ( this ) {
                rctxt = this.getJspRuntimeContext();
                wrapper = rctxt.getWrapper(scriptName);
                if ( wrapper != null ) {
                    if ( wrapper.isValid() ) {
                        return wrapper;
                    }
                    this.renewJspRuntimeContext();
                    rctxt = this.getJspRuntimeContext();
                }
            }
        }

        wrapper = new JspServletWrapper(servletConfig, options,
                scriptName, false, rctxt, defaultIsSession);
        wrapper = rctxt.addWrapper(scriptName, wrapper);

        return wrapper;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.