Package org.apache.jasper.xmlparser

Examples of org.apache.jasper.xmlparser.ParserUtils


     */
    private String getUriFromTld(String resourcePath, InputStream in)
        throws JasperException
    {
        // Parse the tag library descriptor at the specified resource path
        TreeNode tld = new ParserUtils().parseXMLDocument(resourcePath, in);
        TreeNode uri = tld.findChild("uri");
        if (uri != null) {
            String body = uri.getBody();
            if (body != null)
                return body;
View Full Code Here


        } else {
            blockExternal = Boolean.parseBoolean(blockExternalString);
        }

        // Create an iterator over the child elements of our <taglib> element
        ParserUtils pu = new ParserUtils(validate, blockExternal);
        TreeNode tld = pu.parseXMLDocument(uri, in);

        // Check to see if the <taglib> root element contains a 'version'
        // attribute, which was added in JSP 2.0 to replace the <jsp-version>
        // subelement
        this.jspversion = tld.findAttribute("version");
View Full Code Here

                blockExternal = true;
            } else {
                blockExternal = Boolean.parseBoolean(blockExternalString);
            }

            ParserUtils pu = new ParserUtils(validate, blockExternal);
            TreeNode webApp = pu.parseXMLDocument(WEB_XML, ip);

            if (webApp == null
                    || getVersion(webApp) < 2.4) {
                defaultIsELIgnored = "true";
                defaultDeferedSyntaxAllowedAsLiteral = "true";
View Full Code Here

            } else {
                blockExternal = Boolean.parseBoolean(blockExternalString);
            }

            // Parse the web application deployment descriptor
            ParserUtils pu = new ParserUtils(validate, blockExternal);

            TreeNode webtld = null;
            // altDDName is the absolute path of the DD
            if (altDDName != null) {
                webtld = pu.parseXMLDocument(altDDName, ip);
            } else {
                webtld = pu.parseXMLDocument(WEB_XML, ip);
            }

            // Allow taglib to be an element of the root or jsp-config (JSP2.0)
            TreeNode jspConfig = webtld.findChild("jsp-config");
            if (jspConfig != null) {
View Full Code Here

            blockExternal = true;
        } else {
            blockExternal = Boolean.parseBoolean(blockExternalString);
        }

        ParserUtils pu = new ParserUtils(validate, blockExternal);
        TreeNode tld = pu.parseXMLDocument(resourcePath, in);
        TreeNode uri = tld.findChild("uri");
        if (uri != null) {
            String body = uri.getBody();
            if (body != null)
                return body;
View Full Code Here

        blockExternal = true;
    } else {
        blockExternal = Boolean.parseBoolean(blockExternalString);
    }

    ParserUtils pu = new ParserUtils(false, blockExternal);

  TreeNode root = pu.parseXMLDocument(TAG_PLUGINS_XML, is);
  if (root == null) {
      return;
  }

  if (!TAG_PLUGINS_ROOT_ELEM.equals(root.getName())) {
View Full Code Here

                                blockExternal = true;
                            } else {
                                blockExternal = Boolean.parseBoolean(blockExternalString);
                            }

                            ParserUtils pu = new ParserUtils(validate, blockExternal);
                            TreeNode tld = pu.parseXMLDocument(uri, in);

                            if (tld.findAttribute("version") != null) {
                                this.jspversion = tld.findAttribute("version");
                            }
View Full Code Here

            is = uri.openStream();
            /* SJSAS 6384538
            tld = new ParserUtils().parseXMLDocument(IMPLICIT_TLD, is);
            */
            // START SJSAS 6384538
            tld = new ParserUtils().parseXMLDocument(
                IMPLICIT_TLD, is, ctxt.getOptions().isValidationEnabled());
            // END SJSAS 6384538
        } catch (Exception ex) {
            throw new JasperException(ex);
        } finally {
View Full Code Here

        Vector tagVector = new Vector();
        Vector tagFileVector = new Vector();
        Hashtable functionTable = new Hashtable();

        // Create an iterator over the child elements of our <taglib> element
        ParserUtils pu = new ParserUtils();
        TreeNode tld = pu.parseXMLDocument(uri, in);

  // Check to see if the <taglib> root element contains a 'version'
  // attribute, which was added in JSP 2.0 to replace the <jsp-version>
  // subelement
  this.jspversion = tld.findAttribute("version");
View Full Code Here

  InputStream is = ctxt.getResourceAsStream(TAG_PLUGINS_XML);
  if (is == null)
      return;

  TreeNode root = (new ParserUtils()).parseXMLDocument(TAG_PLUGINS_XML,
                   is);
  if (root == null) {
      return;
  }
View Full Code Here

TOP

Related Classes of org.apache.jasper.xmlparser.ParserUtils

Copyright © 2018 www.massapicom. 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.