Examples of EmbeddedServletOptions


Examples of org.apache.jasper.EmbeddedServletOptions

        String servletName = null;

        ServletConfig servletConfig = (ServletConfig) context.findChild("jsp");
        if (servletConfig != null) {
            ServletContext sctx = context.getServletContext();
            Options opt = new EmbeddedServletOptions(servletConfig, sctx);
            JspRuntimeContext jrctx = new JspRuntimeContext(sctx, opt);
            JspCompilationContext jcctx = createJspCompilationContext(jspName, false, opt, sctx, jrctx, null);
            servletName = jcctx.getServletJavaFileName();
        } else {
            logger.error("Context " + context.getName() + " does not have \"jsp\" servlet");
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

        ServletConfig servletConfig = (ServletConfig) context.findChild("jsp");
        if (servletConfig != null) {
            if (summary != null) {
                synchronized (servletConfig) {
                    ServletContext sctx = context.getServletContext();
                    Options opt = new EmbeddedServletOptions(servletConfig, sctx);

                    JspRuntimeContext jrctx = new JspRuntimeContext(sctx, opt);
                    try {
                        //
                        // we need to pass context classloader here, so the jsps can reference /WEB-INF/classes and
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

    public void listContextJsps(Context context, Summary summary, boolean compile) throws Exception {
        ServletConfig servletConfig = (ServletConfig) context.findChild("jsp");
        if (servletConfig != null) {
            synchronized (servletConfig) {
                ServletContext sctx = context.getServletContext();
                Options opt = new EmbeddedServletOptions(servletConfig, sctx);

                JspRuntimeContext jrctx = new JspRuntimeContext(sctx, opt);
                try {
                    if (summary.getItems() == null) {
                        summary.setItems(new HashMap());
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

                                         HttpServletRequest request, HttpServletResponse response) throws Exception {

        String jspName = ServletRequestUtils.getStringParameter(request, "source", null);
        ServletContext sctx = context.getServletContext();
        ServletConfig scfg = (ServletConfig) context.findChild("jsp");
        Options opt = new EmbeddedServletOptions(scfg, sctx);
        String encoding = opt.getJavaEncoding();
        String content = null;

        if (jspName != null) {
            String servletName = getContainerWrapper().getTomcatContainer().getServletFileNameForJsp(context, jspName);
            if (servletName != null) {
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

                if (jsp != null) {

                    ServletContext sctx = context.getServletContext();
                    ServletConfig scfg = (ServletConfig) context.findChild("jsp");
                    Options opt = new EmbeddedServletOptions(scfg, sctx);
                    String descriptorPageEncoding = opt.getJspConfig().findJspProperty(jspName).getPageEncoding();

                    if (descriptorPageEncoding != null && descriptorPageEncoding.length() > 0) {
                        item.setEncoding(descriptorPageEncoding);
                    } else {
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

                e = ExceptionUtils.unwrapInvocationTargetException(e);
                ExceptionUtils.handleThrowable(e);
                // Need to localize this.
                log.warn("Failed to load engineOptionsClass", e);
                // Use the default Options implementation
                options = new EmbeddedServletOptions(config, context);
            }
        } else {
            // Use the default Options implementation
            options = new EmbeddedServletOptions(config, context);
        }
        rctxt = new JspRuntimeContext(context, options);
        if (config.getInitParameter("jspFile") != null) {
            jspFile = config.getInitParameter("jspFile");
            try {
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

  super.init(config);
  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()));
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

    /**
     * Create an EmbeddedServletOptions object using data available from
     * ServletConfig and ServletContext.  Most calls are delegated to it.
     */
    public JspServletOptions(ServletConfig config, ServletContext context) {
        delegate = new EmbeddedServletOptions(config, context);
        tldLocationsCache = new GeronimoTldLocationsCache(context);
    }
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

    /**
     * Create an EmbeddedServletOptions object using data available from
     * ServletConfig and ServletContext.  Most calls are delegated to it.
     */
    public JspServletOptions(ServletConfig config, ServletContext context) {
        delegate = new EmbeddedServletOptions(config, context);
        tldLocationsCache = new GeronimoTldLocationsCache(context);
    }
View Full Code Here

Examples of org.apache.jasper.EmbeddedServletOptions

  super.init(config);
  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()));
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.