How to create GSP taglib without Grails

为君一笑 提交于 2019-12-22 10:58:13

问题


We can use GSP without Grails, just mapping servlet groovy.servlet.TemplateServlet. And what about TagLibs?

Here are docs about using TagLibs with Grails - we should just add class to grails-app/taglib folder.

Is it possible to create custom GSP tag without Grails? And if it possible, even more important question, how exactly can it be done?

UPDATE: it looks like there is a separate Grails Plugin for it - https://github.com/houbie/gsp-taglib. So the question actually boils down to how we can use code from this plugin I guess.


回答1:


According to http://jira.grails.org/browse/GRAILS-5657 full GSPs independent of Grails is (as of September 2012) a feature yet to come. Some minimal versions have been done though



来源:https://stackoverflow.com/questions/8259332/how-to-create-gsp-taglib-without-grails

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!