facebook

JSP editor does not support tagdir [Closed]

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

    jsabater
    Member

    Hello,

    I’m running MyEclipse 3.8.3 and the JSP editor generates an “Unknown tag” message for every tag in the page defined as a .tag file in the WEB-INF/tag directory. The application works fine in Tomcat 5.5.4. However, custom tags developed in Java and defined in a .tld file located in the WEB-INF directory are correctly recognized by the editor.
    Is there any way to configure the editor to get rid of these warnings?

    Thank you,

    Jorge

    #223546 Reply

    Riyad Kalla
    Member

    Jorge,
    If everything is setup correctly the errors will go away… can you please tell me what your web.xml taglib entries are AND what your @taglib directives look like in the pages you are having problems with?

    #223650 Reply

    jsabater
    Member

    Hello,

    the taglib directives in the JSP are like this:

    <%@ taglib prefix=”ede” tagdir=”/WEB-INF/tags” %>

    I have no taglib entries in the web.xml. Tomcat 5.5.4 seems to recognize the tag files located in the WEB-INF/tags directory without any information in the web.xml file, and without any TLD file in the WEB-INF directory. Do I have to include anything in the web.xml file?

    Thanks,

    Jorge

    #223659 Reply

    Riyad Kalla
    Member

    <%@ taglib prefix=”ede” tagdir=”/WEB-INF/tags” %>

    Ohh I’m sorry, I believe the ‘tagdir’ support is an open enhancement request, it just hasn’t been added yet; we appologize for the inconvenience.

    The workaround would to roll back to the old style of prefix/uri taglibs and add the entries in your web.xml file.

    #223765 Reply

    jsabater
    Member

    OK. Thank you.

    Jorge

    #223921 Reply

    mutenroid
    Member

    not…not working. I have the same problem. I use the old style prefix/uri. The tld file and jar file includes in project with web capabilities. and content assistant don’t recognizes the new taglib.
    how to fix?????

    #223925 Reply

    Riyad Kalla
    Member

    how to fix?????

    That depends on about every detail you didn’t tell us about your setup 😉

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #223955 Reply

    mutenroid
    Member

    ok….i’m not english….sorry…

    i try to use de display tag library http://displaytag.sourceforge.net/. MyEclipse latest version 3.8.4 using tomcat 5.0.28 server.

    1.- Create webproject
    2.- Edit web.xml (and assign a DTD schema for webapps) to add and use the display taglib:
    <taglib>
    <taglib-uri>http://displaytag.sf.net</taglib-uri&gt;
    <taglib-location>/WEB-INF/displaytag-12.tld</taglib-location>
    </taglib>
    3.- declare taglib in a new JSP:
    <%@ taglib uri=”http://displaytag.sf.net&#8221; prefix=”display” %>
    4.- and now i write in the jsp….
    <display:…..Content assistant not available…
    5.- but the tricky behaviour is that i deploy the app with the jsp and runs’ well in the server.

    I build, clean the project, etc…but JSP editor don’t want to show the new taglib.

    Thanks

    #223962 Reply

    Riyad Kalla
    Member

    What you are doing looks right, what version of Eclipse are you using? (3.0.1, 3.1M4?)

    #224002 Reply

    mutenroid
    Member

    upssss..!!! my error…..the TLD was corrupt. Now works perfectly.

    I’m using a modified version of display tag with additional funcionality and the tld file was invalid. With the official version works well.

    Thanks.

    #224003 Reply

    Riyad Kalla
    Member

    Glad to hear it is working!

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: JSP editor does not support tagdir [Closed]

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