facebook

problem w/ JSP taglib declaration using absolute URI

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

    jccartwright
    Member

    Hello All,

    The JSP editor complains when using an import statement like:

    <%@ taglib prefix=”log” uri=”http://jakarta.apache.org/taglibs/log-1.0″%&gt;

    The taglibs-log.jar is in the WEB-INF/lib directory and I’ve confirmed that the URI is correct according to the WEB-INF/taglib.tld in the jar. The taglibs-log.jar appears in the Package Explorer. If I add the TLD separately to the project and use a relative URI it does not complain. Nor does the editor complain about the JSTL taglibs added by MyEclipse.

    Can someone clarify for me what the problem is? I’d prefer not to have to include separate TLDs if possible.

    Thanks!

    — john

    #237403 Reply

    Riyad Kalla
    Member

    John,
    Do you have any <Taglib> entries in your web.xml file that are overriding the default TLD value?

    You can remove the TLD from your /WEB-INF diretory if you unzipped it there.

    If you open up the log JAR and go into the META-INF directory and open the TLD file, and look about the 5th line down for <uri></uri> tags, what is the full string between those two tags?

    #237431 Reply

    jccartwright
    Member

    thanks for your reply.

    No, there are no <Taglib> entries in the web.xml (thisis tomcat 5.5.9).

    Here’s the entry from the TLD in log-1.0.jar:
    <uri>http://jakarta.apache.org/taglibs/log-1.0</uri&gt;

    seems to match the absolute URI I was trying to use.

    Thanks again for your help!

    –john

    #237442 Reply

    Riyad Kalla
    Member

    John do you have a link handy for the version of log you are using? I’ll pull it down and see if I can breka things over here…

    #237482 Reply

    jccartwright
    Member
    #237505 Reply

    Riyad Kalla
    Member

    Hmm, it seems all is right with the world:

    What is your Eclipse Build ID (Help > About) and MyEclipse Version ( Window > Preferences )?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: problem w/ JSP taglib declaration using absolute URI

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