I have 3 values coming from model of my controller. I want to pass those argument in the args of g:message tag in my gsp page.
Like
<g:message code="test.pricing.essentialdetails" args="${[freePages,currencySymbol,periodicFee]}"/>
My messages.properties has the below entry
test.pricing.essentialdetails=provides {0} pages and is just {1} {2} per month.
How to pass multiple arguments in g:message in gsp page?
You can try to pass args as list args="[freePages,currencySymbol,periodicFee]"
And final:
<g:message code="test.pricing.essentialdetails" args="[freePages,currencySymbol,periodicFee]"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With