facebook

Taglibs Not Recognized

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

    Timothy Seibert
    Participant

    Hi:
    This is a new/old problem.
    Reference: http://myeclipseide.com/modules.php?op=modload&name=PNphpBB2&file=viewtopic&t=10576#49096
    I have recently installed
    Version: 4.1.0
    Build id: 20060122-4.1-GA

    I have a set of .tld files embedded in a jar in the META-INF directory (where they should be). The struts tlds with headers:
    <taglib>
    <tlibversion>1.2</tlibversion>
    <jspversion>1.1</jspversion>
    <shortname>html</shortname>
    <uri>http://struts.apache.org/tags-html</uri&gt;
    are recognized by the JSP editor with no problems.

    However, the Common Controls tags with the header:
    <taglib>
    <tlib-version>1.0.000</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>forms</short-name>
    <uri>http://www.common-controls.com/cc/tags-forms</uri&gt;
    <display-name>Formelements for the CC Presentationframework</display-name>
    are not recognized. In the previous post this was the case but it was fixed with installing a new build. The build seems to have regressed (or at least that is what it seems to me).

    Any thoughts about what I might try?

    Thanks,

    Bob N-

    #245997 Reply

    Riyad Kalla
    Member

    What is your Eclipse Build ID (From your Help > About menu)

    Also how did you upgrade MyEclipse? Did you use the manager or do an install yourself?

    #246004 Reply

    Timothy Seibert
    Participant

    Hi Riyad:

    Reference https://www.genuitec.com/forums/topic/taglibs-not-recognized/#post-245997

    The build ID is at the top of the post. It was taken directly from the Help.
    I don’t know about the manager. I uninstalled the prior version of MyEclipse and installed the new version fom the download.
    I then restarted from the command line with -clean.

    Hope that this helps.

    Regards,

    Bob N-

    #246006 Reply

    Riyad Kalla
    Member

    Bob,
    What I was asking for is your Eclipse Build ID from your Help > About menu, not the MyEclipse Build ID which is what you provided (which is good, but I need both).

    If you create a new web project, copy the common-controls JAR into the WEB-INF/lib directory, make sure it’s mounted, then create a new JSP page in the WebRoot directory and add this taglib entry:

    <%@taglib uri=”http://www.common-controls.com/cc/tags-forms&#8221; prefix=”cc”%>

    Then go into the editor and type <cc: do you get autocomplete? If you enter a tag and save the file, is it resolved?

    #246009 Reply

    Timothy Seibert
    Participant

    Hi Riyad:
    My apologies. Here is the listing:

    Eclipse SDK
    Version: 3.1.1
    Build id: M20050929-0840

    (c) Copyright Eclipse contributors and others 2000, 2005. All rights reserved.
    Visit http://www.eclipse.org/platform

    This product includes software developed by the
    Apache Software Foundation http://www.apache.org/

    I hope that I get it right this time.
    Regards,
    Bob N-

    #246025 Reply

    Riyad Kalla
    Member

    Thank you Bob, your Build IDs look good… what about the rest of my post above?

    If you create a new web project, copy the common-controls JAR into the WEB-INF/lib directory, make sure it’s mounted, then create a new JSP page in the WebRoot directory and add this taglib entry:

    <%@taglib uri=”http://www.common-controls.com/cc/tags-forms&#8221; prefix=”cc”%>

    Then go into the editor and type <cc: do you get autocomplete? If you enter a tag and save the file, is it resolved?

    #246032 Reply

    Timothy Seibert
    Participant

    Hi Riyad:
    OK…
    a) Set up a new Web project
    b) Gave it a Struts Capability
    c) Placed common-controls jar in /WEB-INF/lib
    d) Added all the jars in the /WEB-INF/lib to the class path
    e) Created a new JSP
    f) Added <%@taglib uri=”http://www.common-controls.com/cc/tags-forms&#8221; prefix=”cc”%>
    g) Tried <cc: for completion….IT DOES WORK
    h) Tried <html: for a Struts completion…IT DOES NOT WORK

    It is strange.

    Any comments?

    Regards,

    Bob N-

    #246034 Reply

    Timothy Seibert
    Participant

    Hi Riyad:
    OK… there is a problem in the generation of headers for JSP’s in MyEclipse.

    If you give the web application a Struts capability and use the Struts jar that is loaded you get the following header declarations:

    <%@ taglib uri=”http://struts.apache.org/tags-html&#8221; prefix=”html” %>

    However, if you crack open the struts.jar and look at the TLD file you find that the required declaration is:

    <%@ taglib uri=”http://jakarta.apache.org/struts/tags-html&#8221; prefix=”html” %>

    Changing that fixes everything. It looks like some version differences.

    So at this moment everything works in the test case once the declarations are adjusted. Now what can I look at in the major application (~1100 files).

    Regards,

    Bob N-

    #246037 Reply

    Riyad Kalla
    Member

    Bob,
    When you created the new JSP page, did you use the Struts 1.1 or 1.2 template BASED on the version of Struts caps you added?

    #246040 Reply

    Riyad Kalla
    Member

    Bob please see my last note, you need to create your JSP page using the proper version template for exactly this reason, they don’t key off of the capabilities version for the project (which is an open enhancement).

    #246042 Reply

    Timothy Seibert
    Participant

    Hi Riyad:
    You are probably correct in that I didn’t pay enough attention. However, I have now taken the common-controls jar out of a user library and placed directly in the class path.
    This made the difference I think. At least that made it work when I set up the test case.
    Thank you for getting me to set out on the test case…it seemed to supply the answer.
    Case closed.

    Regards,

    Bob N-

    #246061 Reply

    Riyad Kalla
    Member

    Bob,
    I’m glad it’s working, sorry for the confusion, there are technical reasons why the libraries were treated differently when they were in the User library, but they should not have been, we are working on this.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Taglibs Not Recognized

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