This works as expected on the GSP page:
<td>${Foo.findAllByBar(bar)}</td>
But when you add a collection operator, the code breaks.
<td>${Foo.findAllByBar(bar).collect { it.name }}</td>
from
Error 500: Could not parse script [...gsp]: startup failed, ...: 129: expecting '}', found ')' @ line 129, column 196. 1 error`.
I got the impression that any valid Groovy code could be placed in GString ${ ... } and properly priced / extended. What am I missing?
knorv source share