facebook

[Closed] Tgalibs 1.2 Support

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #243137 Reply

    Timothy Seibert
    Participant

    Hi:
    I have a set of third party taglibs that implement taglib 1.2. The start of the tld files are:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE taglib PUBLIC “-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN”
    http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd”&gt;
    <taglib>
    <tlib-version>1.0.000</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>forms</short-name>

    These do not appear to be recognized by MyEclipse although the struts tld files with headers:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE taglib PUBLIC “-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN” “http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd”&gt;
    <taglib>
    <tlibversion>1.2</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>html</shortname>

    are recognized. Does this seem correct to you? If so what should I do?
    Note that all these files are in jar files with paths of META-INF or META-INF/tlds.

    Regards,

    Bob N-

    #243203 Reply

    Timothy Seibert
    Participant

    @MITLincolnLabs wrote:

    Hi:
    I have a set of third party taglibs that implement taglib 1.2. The start of the tld files are:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE taglib PUBLIC “-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN”
    http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd”&gt;
    <taglib>
    <tlib-version>1.0.000</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>forms</short-name>

    These do not appear to be recognized by MyEclipse although the struts tld files with headers:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE taglib PUBLIC “-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN” “http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd”&gt;
    <taglib>
    <tlibversion>1.2</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>html</shortname>

    are recognized. Does this seem correct to you? If so what should I do?
    Note that all these files are in jar files with paths of META-INF or META-INF/tlds.

    Regards,

    Bob N-

    OK…I have installed 4.1 M2 and as of now everything is fine. IT might be the new install and it might be M2. However, all TLD files are recognized and I’m happy.

    Regards,

    Bob N-

    #243204 Reply

    Riyad Kalla
    Member

    Bob,
    If you look 1 or 2 more lines down in the Struts TLDs they define a default URI, and that is what is used by default in our Templates.

    In the TLDs you received, do they define a default URI? (<uri></uri>) If not, you need to add mappings to your web.xml file that maps your TLD files to specific URIs that you can use in your pages.

    #243206 Reply

    Timothy Seibert
    Participant

    Hi rkalla:
    Thanks for the note. The URI is defined in both cases. There may have been something else but as I have just replied the installation of 4.1 M2 seems to fix the problem. Whether the problem was the prior installation or the code base is now irrelevant.
    Regards,
    Bob N-

    #243207 Reply

    Riyad Kalla
    Member

    Ahh very cool, thanks for following up Bob.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] Tgalibs 1.2 Support

You must be logged in to post in the forum log in