- This topic has 11 replies, 2 voices, and was last updated 18 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
Timothy SeibertParticipantHi:
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-GAI 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>
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>
<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-
Riyad KallaMemberWhat 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?
Timothy SeibertParticipantHi 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-
Riyad KallaMemberBob,
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” 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?
Timothy SeibertParticipantHi 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/platformThis 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-
Riyad KallaMemberThank 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” 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?
Timothy SeibertParticipantHi 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” prefix=”cc”%>
g) Tried <cc: for completion….IT DOES WORK
h) Tried <html: for a Struts completion…IT DOES NOT WORKIt is strange.
Any comments?
Regards,
Bob N-
Timothy SeibertParticipantHi 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” 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” 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-
Riyad KallaMemberBob,
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?
Riyad KallaMemberBob 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).
Timothy SeibertParticipantHi 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-
Riyad KallaMemberBob,
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. -
AuthorPosts