submitButton が押されたときに呼び出される「保存」という名前のコントローラー アクションがあり、保存アクションが Java 関数を呼び出し、結果としてオブジェクトの配列を取得しています。A をコレクションの名前にすると、オブジェクトのコレクションになります。これで、この A は、アクション「保存」によってレンダリングされた _C.gsp という名前のテンプレートにモデルとして渡されます。 、コレクションA内、表形式で。私が試したのはこれです:
テンプレート:_C.gsp
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th class="small"><g:message code="Name"/></th>
<th class="medium"><g:message code="ID"/></th>
<th class="tiny"><g:message code="STREET"/></th>
</tr>
</thead>
<tbody>
<g:each in="${A}" >
<g:each in="${A.Name}" status="idx" var="nam" >
<tr>
<td>
${nam}
</td>
<td>
//how can I show id here
</td>
<td>
// how can I show street here
</td>
</g:each>
</g:each>
</tbody>
</table>
PLZヘルプ...