facebook

Taglibs not using correct tld when absolute url used

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #211639 Reply

    posttool
    Member

    Here are the offending lines in the jsp document.

    <%@ taglib uri="http://jakarta.apache.org/taglibs/datetime-1.0" prefix="dt" %>
    ...
    <dt:format><c:out value="${event.start.time}"/></dt:format>
    

    Here is the strange error-

    Severity Description Resource In Folder Location Creation Time
    2 unknown user tag <dt:format … check http://jakarta.apache.org/taglibs/datetime-1.0 00_home.jsp SFHIV/WebRoot/templates line 50 August 6, 2004 10:44:47 AM

    The tablibs-string.jar is also in the classpath and if I try something like dt:chomp there is no error. If I add the taglib tlds manually and use a context relative url, the error disappears……………………………….

    What operating system and version are you running?
    WINDOWS XP

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    3.0RC2

    – Was Eclipse freshly installed for MyEclipse?
    YUP

    – If not, was it upgraded to its current version using the update manager?
    – Are any other external plugins installed?
    NOPE

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    Version: 3.7.200
    Build id: 200407091200-3.8-Beta2

    What JDK version are you using to run Eclipse? (java -version)
    1.4.2

    What JDK version are you using to launch your application server?
    default

    What steps did you take that resulted in the issue?
    see above

    What application server are you using?
    Tomcat 4

    #211661 Reply

    Riyad Kalla
    Member

    First comment is to please upgrade to Eclipse 3.0 GA, the version of MyEclipse you are running was developed against the final release. While it might “pretty much work” against the RC releases, you have a higher chance of running into flakiness.

    Second, I actually use the datetime lib in a project I”m working on now and it works fine…

    taglib:

    <%@ taglib uri="http://jakarta.apache.org/taglibs/datetime-1.0" prefix="dt" %>

    code:

    <dt:format pattern="MM-dd-yy"><bean:write  name="user" property="dateCreated" /></dt:format>

    web.xml:

    
    <taglib>
        <taglib-uri>http://jakarta.apache.org/taglibs/datetime-1.0</taglib-uri>
        <taglib-location>/WEB-INF/tld/taglibs-datetime.tld</taglib-location>
    </taglib>
    

    Can you try and do the update and copy what I did and see if it works?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Taglibs not using correct tld when absolute url used

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