Small snippets of tasty Grails.
From the service:
class MyService { def grailsApplication def method() { def g = grailsApplication.mainContext.getBean('org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib') }}
...now g can be used just as in GSP files.
Ei kommentteja:
Lähetä kommentti