In my velocity template, I want to concat strings delimited by comma(,) using foreach loop.
#foreach($field in $MyObject.Fields)
${field.Name},
#end
This results in an extra comma at the end. How can avoid the last unwanted comma?
PS: I am using NVelocity 0.4.2
Thanks