- This topic has 10 replies, 3 voices, and was last updated 19 years, 12 months ago by Riyad Kalla.
-
AuthorPosts
-
jsabaterMemberHello,
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
Riyad KallaMemberJorge,
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?
jsabaterMemberHello,
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
Riyad KallaMember<%@ 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.
jsabaterMemberOK. Thank you.
Jorge
mutenroidMembernot…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?????
Riyad KallaMemberhow 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.
mutenroidMemberok….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>
<taglib-location>/WEB-INF/displaytag-12.tld</taglib-location>
</taglib>
3.- declare taglib in a new JSP:
<%@ taglib uri=”http://displaytag.sf.net” 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
Riyad KallaMemberWhat you are doing looks right, what version of Eclipse are you using? (3.0.1, 3.1M4?)
mutenroidMemberupssss..!!! 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.
Riyad KallaMemberGlad to hear it is working!
-
AuthorPosts