Hi
From inside a gsp each loop, this will work:
<g:set var="title" value="${it.title}"/>
<td><g:link controller="document" id="${it.id}" action="show">${title}</g:link></td>
but accessing 'it' directly in link will fail:
<td><g:link controller="document" id="${it.id}" action="show">
${it.title}</g:link></td> <!--CAUSES NULLPOINTER -->
I just want to know if I should view this as a "bug" or as something "normal". If the latter is true, please explain why!
