Hai

I have an issue in passing the value to an gsp page

My controller action:

def processCode(){
def processName=ProcessDetails.get(params.processName)
def processWiseMaterialTable=ProcessWiseMaterial.findA llByProcessDetailsObj(ProcessDetails.get(params.pr ocessName))
render(view: "_processWiseMaterial", model: [processNamerocessName,processWiseMaterialTablerocessWiseMaterialTable])
}

My gsp page:

<g:each in="${processWiseMaterialTable}" status="i" var="processWiseMaterialInstance">
<tr>
<td>&nbsp;${fieldValue(bean: processWiseMaterialInstance, field: "processDetailsObj")}</td>
<td>&nbsp;${fieldValue(bean: processWiseMaterialInstance, field: "processDetailsObj.processCode")}</td>
<td>&nbsp;${fieldValue(bean: processWiseMaterialInstance, field: "itemName")}</td>
<td>&nbsp;${fieldValue(bean: processWiseMaterialInstance, field: "itemName.itemNumber")}</td>
<td>&nbsp;${fieldValue(bean: processWiseMaterialInstance, field: "itemName.revisionNumber")}</td>
<td>&nbsp;${fieldValue(bean: processWiseMaterialInstance, field: "itemName.uom")}</td>
</tr>
</g:each>

Is there any other way to solve this issue. I am using grails 2 version.