facebook

myeclipse validator does not find my tld’s

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

    markusin
    Member

    Hello to everyone:

    I am trying to put my tld files out from the webinf dir into the referenced jar files.

    The problem is, that the myeclipse validator does not find the prefixes located in that tld files.
    After searching in the faq
    http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html

    I am already not able to solve that problem.

    My project is build as following:
    1) my jar file (pippo.jar): containg in META-INF the tld file: pippo.tld
    2) web.xml file containing following taglib element:

    
    <taglib>
         <taglib-uri>http://pippo.it</taglib-uri>
         <taglib-location>/WEB-INF/lib/pippo.jar</taglib-location>
    </taglib>
    

    3.) myJsp file:

    
    <%@ taglib uri="http://pippo.it" prefix="pippo" %>
    

    Additional I want to know:
    I) the name from the tld file must not be taglib.tld (Following JSP 1.1 specifications) ?
    II) the taglib-uri specified in the web.xml file and referenced in my jsp file can be a pseudo name?

    Thanks for any help

    Markus

    Using:
    eclipse: 3.1.1
    myeclipse: 4.1.1
    jdk: 1.5
    os: win xp prof

    #252081

    Riyad Kalla
    Member

    Markus,
    The validator follows the J2EE specification for resolving TLD files from JAR files, please see this entry for more information:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10906.html

    Also note that if you plan on remapping your TLDs from their default values to custom ones, you *have* to put the TLD under your WEB-INF dir somewhere and then reference it in your <taglib> entries in your web.xml file.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: myeclipse validator does not find my tld’s

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