taglib - Fetching some value from message.properties in Grails -
want fetch value message.properties
file in grails in job , how can ??
my job:
def execute() { // execute task list<string> emails = nayaxuser.findallbyemailsent(false)*.username emails.each {emailaddress-> mailservice.sendmail { //todo: fetch message.properties emailaddress fetch message.properties subject fetch message.properties html body.tostring() } } }
you can use:
g.message(code: 'my.message.code') //or g.message(code: 'my.message.code', args: [arg1, arg2])
Comments
Post a Comment