Package javax.servlet.jsp.tagext

Examples of javax.servlet.jsp.tagext.TagLibraryInfo


   * @return the TagInfo for the TLDELementDeclaration if the declaration is
   *         valid, otherwise null
   */
  private TagInfo getTagInfo(final TLDElementDeclaration decl, TagExtraInfo tei, String prefix, String uri) {

    TagLibraryInfo libInfo = new TagLibraryInfoImpl(prefix, uri, decl);

    CMNamedNodeMap attrs = decl.getAttributes();
    TagAttributeInfo[] attrInfos = new TagAttributeInfo[attrs.getLength()];
    TLDAttributeDeclaration attr = null;
    String type = ""; //$NON-NLS-1$
View Full Code Here


   * @return the TagInfo for the TLDELementDeclaration if the declaration is
   *         valid, otherwise null
   */
  private TagInfo getTagInfo(final TLDElementDeclaration decl, TagExtraInfo tei, String prefix, String uri) {

    TagLibraryInfo libInfo = new TagLibraryInfoImpl(prefix, uri, decl);

    CMNamedNodeMap attrs = decl.getAttributes();
    TagAttributeInfo[] attrInfos = new TagAttributeInfo[attrs.getLength()];
    TLDAttributeDeclaration attr = null;
    String type = ""; //$NON-NLS-1$
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

  String uri = attrs.getValue("uri");
  String prefix = attrs.getValue("prefix");
  if (uri != null && prefix != null) {
      // Errors to be checked in Validator
      String[] location = ctxt.getTldLocation(uri);
      TagLibraryInfo tl = new TagLibraryInfoImpl(ctxt, prefix, uri,
                   location, err);
      taglibs.put(prefix, tl);
  }

  new Node.TaglibDirective(attrs, start, parent);
View Full Code Here

  String prefix = tagName.substring(0, i);
  String shortTagName = tagName.substring(i+1);

  // Check if this is a user-defined tag.
        TagLibraryInfo tagLibInfo = (TagLibraryInfo) taglibs.get(prefix);
        if (tagLibInfo == null) {
      reader.reset(start);
      return false;
  }
  TagInfo tagInfo = tagLibInfo.getTag(shortTagName);
  if (tagInfo == null) {
      err.jspError(start, "jsp.error.bad_tag", shortTagName, prefix);
  }
  Class tagHandlerClass = null;
  try {
View Full Code Here

    /*
     * Receives notification of the start of a Namespace mapping.
     */
    public void startPrefixMapping(String prefix, String uri)
        throws SAXException {
        TagLibraryInfo taglibInfo;
        try {
            taglibInfo = getTaglibInfo(prefix, uri);
        } catch (JasperException je) {
            throw new SAXParseException(
                Localizer.getMessage("jsp.error.could.not.add.taglibraries"),
View Full Code Here

        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

     * @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

     * Receives notification of the start of a Namespace mapping.
     */
    @Override
    public void startPrefixMapping(String prefix, String uri)
        throws SAXException {
        TagLibraryInfo taglibInfo;

        if (directivesOnly && !(JSP_URI.equals(uri))) {
            return;
        }

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.