- This topic has 13 replies, 2 voices, and was last updated 20 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
ecommit1MemberI upgraded from Eclipse 3.7.2 to 3.8.2
All my jsp files where I use taglibs are now underlined with yellow.
Actually I am putting<%@ taglib ...
in a file header.jsp and this file is included on allpages. This used to work before. But now in order to remove the yellow underlines and to be able to use auto complete, I have to put the
<% taglib ..
line in each page. Any idea how I can escape doing this??
Riyad KallaMemberecommit,
3.8.2 is a lot pickier about taglib entries now which might be what is causing the problem… some info I’d like from you:1) Is this a Java Project, or Web Project?
2) What is your WebRoot directory layout and all the dirs under it?
3) Where is the file that has the include in it, and where is the included file?
4) What is the exact <taglib> line in the included file?
5) What is your web.xml entry for the taglib?
ecommit1Memberthanks for the reply,
This is the info:1. This is a Web Project. Using spring framework.
2. webroot/WEB-INF is having the web.xml and all the framework related xmls. Along with that the classes folder which contains all the Database Beans, Business Objects and Controller classes and the tlds referred. Also the lib folder containing all jars. Plus the views folder containing all jsps.
3. The file ‘header.jsp’ which contains all taglib entries is in the folder webroot/WEB-INF/views/jsp/core. Where as all other files are either in this directory or in other directories in the same level as core.
4. The taglib entry in the header.jsp file is like this
<%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core” %>
<%@ taglib prefix=”forms” uri=”/WEB-INF/classes/taglib_forms.tld” %>
The include code in a file is like this:
<%@ include file=”header.jsp” %>
5. I dont have any entry in the web.xml for the taglibs.This used to have no problems with the earlier version 3.7.2.
Now the problem is the <taglib> entry has to be present in a jsp file in order to make MyEclipse give auto completions.
There is no problem with the project as such when it is run related to taglibs.Thanks
Riyad KallaMemberThank you for the detailed info, everything looks 95% right, except for the missing <taglib> entry in your web.xml file for the taglib_forms.tld taglibs… please look at this FAQ entry describing exactly how the URI attribute in the <taglib> tag works: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-31.html#251, it is not a URL (locator) it is only an identifier.
The JSTL taglib should work however. Once you get that taglib entry added, see if autocomplete starts working. Most all of our users use this layout structure (putting taglibs all in 1 file and including it) and autocomplete will work when the project is configured correctly.
ecommit1MemberSupport,
I included the <taglib> references in the web.xml as per your suggestions. And everything is as before. Before also, the auto completion was working in the header.jsp file where the <%@ taglib> entry was there. The problem seems to be something different from finding the tlds. Because everything is perfect if I put the <%@ taglig> entry in each page. And this issue is only with the upgraded version. My collegue sticking with the older version is not having any issues with the same project.
Thanks
Riyad KallaMemberecommit,
Can you create a smaller sample project that you can File > Export to a Zip file and email it to support@genuitec.com ATTN: Riyad so I can take a look at this and see what is going on? If this is a bug we need a reproducable test case that we can file with the bug.
ecommit1MemberSure I can do it.
Infact I have already created a sample web project with 2 jsps to demonstrate this issue. Unfortunately I am not at office at the moment. I will be doing it as the first thing at office monday. You will receive it positively Monday morning your time.Thanks
Riyad KallaMemberThank you for working with us on it.
ecommit1Membertest project exported and sent to support@genuitec.com
thanks
Riyad KallaMemberI recieved your project and loaded it up directly into Eclipse (File > Import) and recieved immediately the following autocomplete for both libraries:
WHich was more than I expected as there were no classes backing the tag libraries. So then I added the jstl.jar lib to the project and created an empty /src folder to better simluate your environment and closed/reopened and rebuilt the project and then completion for the forms: tags disappeared which was expected since there were no classes backing it, but completion for c: was still available:
I noticed in your email you mention Eclipse 3.1, this will almost definately give you problems, as small as this and as big as exceptions and problems editing. It is not supported at this time but will be once they hit a RC stage of releases. Try a brand new fresh download/install of Eclipse 3.0.1 and MyEclipse 3.8.2 + QuickFix 2 and see if you can get your project working. Rule out any inconsistencies first.
ecommit1MemberI tried as you said.
Removed both eclipse and MyEclipse installations.
Installed eclipse 3.0.1 fresh. Installed MyEclipse and applied quickfix.
Selected a new workspace. And made the same project.
Surprisingly no change.Now the only difference I can find from my installation and your is of the OS.
Could you please try the same with a Linux OS (preferably Fedora). May be I am doing something very silly and having this problem, but dont know what it is.Thanks
Riyad KallaMemberI have asked our linux guy to have a look-see, hang tight.
ecommit1MemberAny progress please??
Am still struggling
Riyad KallaMemberI’m sorry for not updating this thread, we did discover a discrepency with how autocomplete was being treated on Linux and filed it as a bug. We hope to address it for 3.8.3 but nothing is set in stone yet.
-
AuthorPosts