Package javax.servlet.jsp.tagext

Examples of javax.servlet.jsp.tagext.TagLibraryInfo


        Mark start,
        Node parent)
        throws SAXException {

        // Check if this is a user-defined (custom) tag
        TagLibraryInfo tagLibInfo = pageInfo.getTaglib(uri);
        if (tagLibInfo == null) {
            return null;
        }

        TagInfo tagInfo = tagLibInfo.getTag(localName);
        TagFileInfo tagFileInfo = tagLibInfo.getTagFile(localName);
        if (tagInfo == null && tagFileInfo == null) {
            throw new SAXException(
                Localizer.getMessage("jsp.error.xml.bad_tag", localName, uri));
        }
        Class tagHandlerClass = null;
View Full Code Here


            // Remember the prefix for later error checking
            pageInfo.putNonCustomTagPrefix(prefix, reader.mark());
            return false;
        }

        TagLibraryInfo tagLibInfo = pageInfo.getTaglib(uri);
        TagInfo tagInfo = tagLibInfo.getTag(shortTagName);
        TagFileInfo tagFileInfo = tagLibInfo.getTagFile(shortTagName);
        if (tagInfo == null && tagFileInfo == null) {
            err.jspError(start, "jsp.error.bad_tag", shortTagName, prefix);
        }
        Class tagHandlerClass = null;
        if (tagInfo != null) {
View Full Code Here

     * @return The tag library associated with the given uri namespace
     */
    private TagLibraryInfo getTaglibInfo(String prefix, String uri)
        throws JasperException {

        TagLibraryInfo result = null;

        if (uri.startsWith(URN_JSPTAGDIR)) {
            // uri (of the form "urn:jsptagdir:path") references tag file dir
            String tagdir = uri.substring(URN_JSPTAGDIR.length());
            result =
View Full Code Here

                                            n,
                                            "jsp.error.attribute.invalidPrefix",
                                            prefix);
                        }
                    }
                    TagLibraryInfo taglib = pageInfo.getTaglib(uri);
                    FunctionInfo funcInfo = null;
                    if (taglib != null) {
                        funcInfo = taglib.getFunction(function);
                    }
                    if (funcInfo == null) {
                        err.jspError(n, "jsp.error.noFunction", function);
                    }
                    // Skip TLD function uniqueness check. Done by Schema ?
View Full Code Here

                                            n,
                                            "jsp.error.attribute.invalidPrefix",
                                            prefix);
                        }
                    }
                    TagLibraryInfo taglib = pageInfo.getTaglib(uri);
                    FunctionInfo funcInfo = null;
                    if (taglib != null) {
                        funcInfo = taglib.getFunction(function);
                    }
                    if (funcInfo == null) {
                        err.jspError(n, "jsp.error.noFunction", function);
                    }
                    // Skip TLD function uniqueness check. Done by Schema ?
View Full Code Here

        ErrorDispatcher errDisp = compiler.getErrorDispatcher();

        Enumeration enumeration =
            compiler.getPageInfo().getTagLibraries().elements();
        while (enumeration.hasMoreElements()) {
            TagLibraryInfo tli = (TagLibraryInfo) enumeration.nextElement();
            ValidationMessage[] errors
                = ((TagLibraryInfoImpl) tli).validate(xmlView);
            if ((errors != null) && (errors.length != 0)) {
                if (errMsg == null) {
                    errMsg = new StringBuffer();
                }
                errMsg.append("<h3>");
                errMsg.append(errDisp.getString("jsp.error.tlv.invalid.page",
                                                tli.getShortName()));
                errMsg.append("</h3>");
                for (int i=0; i<errors.length; i++) {
                    errMsg.append("<p>");
                    errMsg.append(errors[i].getId());
                    errMsg.append(": ");
View Full Code Here

                                      n.isXmlSyntax()));
            visitBody(n);
        }

        public void visit(Node.CustomTag n) throws JasperException {
            TagLibraryInfo tagLibInfo = (TagLibraryInfo)
                pageInfo.getTagLibraries().get(n.getPrefix());
            TagInfo tagInfo = tagLibInfo.getTag(n.getShortName());
            if (tagInfo == null) {
                err.jspError(n, "jsp.error.missing.tagInfo", n.getName());
            }

            /*
 
View Full Code Here

            this.pageInfo = compiler.getPageInfo();
            this.err = compiler.getErrorDispatcher();
        }

        public void visit(Node.CustomTag n) throws JasperException {
            TagLibraryInfo tagLibInfo = (TagLibraryInfo)
                pageInfo.getTagLibraries().get(n.getPrefix());
            TagInfo tagInfo = tagLibInfo.getTag(n.getShortName());
            if (tagInfo == null) {
                err.jspError(n, "jsp.error.missing.tagInfo", n.getName());
            }

            if (!tagInfo.isValid(n.getTagData())) {
View Full Code Here

      else {
          err.jspError(n,
        "jsp.error.attribute.invalidPrefix", prefix);
      }
        }
        TagLibraryInfo taglib = pageInfo.getTaglib(uri);
        FunctionInfo funcInfo = null;
        if (taglib != null) {
      funcInfo = taglib.getFunction(function);
        }
        if (funcInfo == null) {
      err.jspError(n, "jsp.error.noFunction", function);
        }
        // Skip TLD function uniqueness check.  Done by Schema ?
View Full Code Here

      else {
          err.jspError(n,
        "jsp.error.attribute.invalidPrefix", prefix);
      }
        }
        TagLibraryInfo taglib = pageInfo.getTaglib(uri);
        FunctionInfo funcInfo = null;
        if (taglib != null) {
      funcInfo = taglib.getFunction(function);
        }
        if (funcInfo == null) {
      err.jspError(n, "jsp.error.noFunction", function);
        }
        // Skip TLD function uniqueness check.  Done by Schema ?
View Full Code Here

TOP

Related Classes of javax.servlet.jsp.tagext.TagLibraryInfo

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.