I am just starting with Groovy / Grails
I noticed that the error messages you get when validating the form look like this:
Property [{0}] of class [{1}] cannot be blank
For example, this code for uploading errors to the console
s.errors.allErrors.each
{
println it.defaultMessage
}
Now it.arguments contains the arguments that you need to fill out here.
The problem is that I cannot find any method in the Grails or Groovy documentation that formats strings based on positional parameters like {0}, {1} and replaces values ββfrom an array
I need something like python%
What is the correct way to format these error strings so that the parameters are correctly replaced?
user122299