Examples of TldPreload


Examples of com.caucho.jsp.cfg.TldPreload

        _globalPaths = paths;

        loadClassPathTlds(globalTaglibs, paths, "");

        for (int i = globalTaglibs.size() - 1; i >= 0; i--) {
          TldPreload tld = globalTaglibs.get(i);

          if (tld.getPath() == null || tld.getPath().getPath() == null)
            continue;

          String tldPathName = tld.getPath().getPath();

          if (tldPathName.startsWith("/com/caucho")) {
            cauchoTaglibs.add(globalTaglibs.remove(i));
          }
        }
View Full Code Here

Examples of com.caucho.jsp.cfg.TldPreload

      }
      else if ((path.getPath().endsWith(".tld")
                || path.getPath().endsWith(".ftld"))
               && path.isFile() && path.canRead()) {
        try {
          TldPreload taglib = parseTldPreload(path);

          taglibs.add(taglib);

          if (taglib.getURI() == null &&
              taglib.getConfigException() != null &&
              _loadAllTldException == null)
            _loadAllTldException = new JspLineParseException(taglib.getConfigException());
        } catch (Exception e) {
          log.warning(e.getMessage());
        }
      }
    }
View Full Code Here

Examples of com.caucho.jsp.cfg.TldPreload

    }
    else if ((path.getPath().endsWith(".tld")
              || path.getPath().endsWith(".ftld"))
             && path.isFile() && path.canRead()) {
      try {
        TldPreload taglib = parseTldPreload(path);

        taglibs.add(taglib);

        if (taglib.getURI() == null &&
            taglib.getConfigException() != null &&
            _loadAllTldException == null)
          _loadAllTldException = new JspLineParseException(taglib.getConfigException());
      } catch (Exception e) {
        /*
        if (_loadAllTldException == null) {
        }
        else if (e instanceof JspParseException)
View Full Code Here

Examples of com.caucho.jsp.cfg.TldPreload

      }
    }

    for (Path path : tldPaths) {
      try {
        TldPreload taglib = parseTldPreload(path);
        taglibs.add(taglib);

        if (taglib.getURI() == null
            && taglib.getConfigException() != null
            && _loadAllTldException == null)
          _loadAllTldException = new JspLineParseException(taglib.getConfigException());
      } catch (Exception e) {
        /*
          if (_loadAllTldException == null) {
          }
          else if (e instanceof JspParseException)
View Full Code Here

Examples of com.caucho.jsp.cfg.TldPreload

    TldTaglib taglib = null;
    TldTaglib jsfTaglib = null;

    for (int i = 0; i < _preloadTaglibs.size(); i++) {
      TldPreload preload = _preloadTaglibs.get(i);

      if (uri.equals(preload.getURI())
          && (mapLocation == null
              || mapLocation.equals(preload.getLocation())
              || mapLocation.equals(uri))) {
        if (preload.isJsf()) {
          if (_isFastJsf)
            jsfTaglib = parseTld(preload.getPath());
        }
        else if (taglib == null)
          taglib = parseTld(preload.getPath());
      }
    }

    if (jsfTaglib != null && taglib != null) {
      taglib.mergeJsf(jsfTaglib);
View Full Code Here

Examples of com.caucho.jsp.cfg.TldPreload

    throws JspParseException, IOException
  {
    ReadStream is = path.openRead();

    try {
      TldPreload taglib = parseTldPreload(is);

      taglib.setPath(path);
      String appDir = _webApp.getRootDirectory().getPath();
      String tagPath = path.getPath();

      if (tagPath.startsWith(appDir))
        taglib.setLocation(tagPath.substring(appDir.length()));

      return taglib;
    } finally {
      is.close();
    }
View Full Code Here

Examples of com.caucho.jsp.cfg.TldPreload

    if (_webApp.getJsp() == null
        || _webApp.getJsp().isValidateTaglibSchema()) {
      schema = getSchema();
    }

    TldPreload taglib;

    if (isJsfTld)
      taglib = new JsfTldPreload();
    else
      taglib = new TldPreload();

    try {
      _config.configure(taglib, is, schema);
    } catch (ConfigException e) {
      log.warning(e.toString());
      log.log(Level.FINER, e.toString(), e);

      taglib.setConfigException(e);
    } catch (Exception e) {
      log.warning(e.toString());
      log.log(Level.FINER, e.toString(), e);

      taglib.setConfigException(e);
    } finally {
      is.close();
    }

    return taglib;
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.