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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -