要想在编写gsp页面时得到eclipse对于gsp标签库的代码提示,在gsp页面最上面添加如下代码: <%@ taglib prefix="g" uri="/web-app/WEB-INF/tld/grails.tld" %>