Hi, My jsp has uses 'nested:iteration' tag in order to generate input text fields. The problem is that when the html page generated from this jsp, the input tag name is beginning from action form name instead of the name of the member of the action form. Not only that, it suffixing index value to the action form name. This is causing my form submission to fail. Did any one face similar issue? What could be the problem here?
My jsp looks like this: <html:form action="/saveAction.do"> <nested:iterate name="saveActionForm" property="headerList" id="headerList" type="HeaderBean" indexId="ctr"> <nested:iterate property="detailList" type="DetailBean" indexId="inner_ctr"> . . . <!-- Header column --> <!-- headerFieldX --> <td > <nested:text indexed="true" name="headerList" property="headerFieldX" /> </td> <!-- Detail Columns --> <!-- detailFieldA --> <td > <nested:text indexed="true" property="detailFieldA" /> </td> . . .. </nested:iterate> </nested:iterate> </html:form> . . . . Html generated looks like this: . . . . <!-- Header column --> <!-- headerFieldX --> <td > <input type="text" name="headerList[0].headerFieldX" value="XValue0"/> </td> <!-- Detail Columns --> <!-- detailFieldA --> <td > <input type="text" name="saveActionForm[0].headerList[0].detailList[0].detailFieldA" value="AValue0" /> </td> <!-- headerFieldX --> <td > <input type="text" name="headerList[0].headerFieldX" value="XValue0"/> </td> <!-- Detail Columns --> <!-- detailFieldA --> <td > <input type="text" name="saveActionForm[1].headerList[0].detailList[1].detailFieldA" value="AValue1"/> </td> . <!-- headerFieldX --> <td > <input type="text" name="headerList[1].headerFieldX" value="XValue1"/> </td> <!-- Detail Columns --> <!-- detailFieldA --> <td > <input type="text" name="saveActionForm[0].headerList[1].detailList[0].detailFieldA" value="AValue0"/> </td> . . <!-- headerFieldX --> <td > <input type="text" name="headerList[1].headerFieldX" value="XValue1"/> </td> <!-- Detail Columns --> <!-- detailFieldA --> <td > <input type="text" name="saveActionForm[1].headerList[1].detailList[1].detailFieldA" value="AValue1" /> </td> ... .. Please note the extra 'saveActionForm[..]' in the detail columns input tag. This should not be there. I have tried to use iterate without the 'name' attribute, it is still giving same problem. Any clue on this strange behavior would benefit me a lot. What am I missing? Why is it prefixing the Action Form name to the field name? I am using stuts 1.2.7 Thanks in advance Regards Vijay --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]