Enabling Grails Taglib Code Completion in Eclipse 3.4
According to the Eclipse IDE/Grails Integration to setup code completion of the grails.tld taglib you should add the following to the start of all gsp pages.
<%@ taglib prefix=“g” uri=“/web-app/WEB-INF/tld/grails.tld” %>This code did not work for me, but when I modified the taglib reference to be following everything started to fall in place.
<%@ taglib prefix=“g” uri=“/WEB-INF/tld/grails.tld” %>Now I am using Grails 1.0.3 and the documentation says this will no longer work for Grails 1.1 and above. I wonder since the documentation was wrong about the uri path for previous versions, if it will work with the correct uri path with Grails 1.1.
Update:
This change in the uri for the taglib only works if your page is located in the web-app location. Since I am new at grails, I found that when you place the gsp pages in your view directory, the /web-app/WEB-INF/tld/grails.tld uri is correct.




I had the same problem so I created a new grails.tld file at
http://grails-tld.googlecode.com/files/grails.tld
Posted by Paul Holt on December 30, 2009 at 08:08 AM EST #