facebook

custom tag are not found

  1. MyEclipse Archived
  2.  > 
  3. Old Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #196228 Reply

    pavel4u
    Member

    So I set up a Web Project with MyEclipse. I put my web.xml in WEB-INF and my jsps one level higher:

    Web Root/html/a.jsp
    /WEB-INF/web.xml
    /WEB-INF/lib/webwork.jar

    Now in my web.xml there is a taglib defined as:

    <taglib>
    <taglib-uri>webwork</taglib-uri>
    <taglib-location>/WEB-INF/lib/webwork.jar</taglib-location>
    </taglib>

    what do I have to do to get this working? in all my jsps all the tags of this taglib are not recognized.

    PS: Interesting is that in Eclipse I don’t see the WEB-INF/lib folder

    Thanks for your help.

    -paVel

    #196230 Reply

    support-michael
    Keymaster

    MyEclipse JSP editor requires external TDL files. Webwork is a packaged tag library, i.e., its TDL file is packaged in the META-INF directory of webwork.jar. By extracting the tdl file into my project’s WEB-INF folder I’m able to use code completion. Here are the steps I used:

    1) extract the webwork.jar/META-INF/taglib.tdl file into your project’s WEB-INF directory

    2) modify your taglib declaration in web.xml as follows
    <taglib>
    <taglib-uri>webwork</taglib-uri>
    <taglib-location>/WEB-INF/taglib.tld</taglib-location>
    </taglib>

    3) add taglib directive to your JSPs
    <%@ taglib uri=”webwork” prefix=”webwork” %>
    <%@ taglib uri=”webwork” prefix=”ui” %>

    4) within a jsp enter <ui: followed by ctl+space to see completion

    Michael
    MyEclipse Support

    #196239 Reply

    pavel4u
    Member

    Thank you for this workaround.

    But I’m sure this has to be changed in the coming release. It is very common to have the tld packaged like that!

    So I would say this is a bug. IDEA and Netbeans don’t have a problem to handle this correctly.

    Cheers
    -paVel

    #196241 Reply

    support-michael
    Keymaster

    A bug ?!? I like to think of it as a feature enhancement opportunity. 😉

    Seriously, we fixed this problem yesterday and it will be incorporated in the next release.

    Michael
    MyEclipse Support

    #196243 Reply

    pavel4u
    Member

    Hi Micheal

    Great!
    Looking forward to this fixed “feature enhancement opportunity” 🙂

    Cheers
    -paVel

    #196432 Reply

    Scott Anderson
    Participant

    Issues identified in this thread were addressed in MyEclipse 2.1.1 EA2

    –Scott
    MyEclipse Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: custom tag are not found

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