How can I get a value from message properties outside of GSPs? For instance, the equivalent of
but
You can also import the validation tag lib and use it grab the message source.
import org.codehaus.groovy.grails.plugins.web.taglib.ValidationTagLib def g = new ValidationTagLib() g.message(error: error)