You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Manoj Viramgama <mv...@hotmail.com> on 2003/04/13 18:31:15 UTC
Question: nested tag
I am facing the problem while using nested tag in struts1.2.
Following 3 level object I have set in ActionForm.
class SampleActionForm --> params with get/set methods --> ArrayList collection_A
class A --> params with get/set methods --> String a1, ArrayList collection_B
class B --> params with get/set methods --> String b1, ArrayList collection_C
class C --> params with get/set methods --> String c1
When I display SampleActionForm-->collection_A in jsp, by nested tags (as input type = "text"), I get following html with form.
<input type="text" name="A[0].a1" value="">
<input type="text" name="A[0].B[0].b1" value="">
<input type="text" name="A[0].B[0].C[0].c1" value="">
<input type="text" name="A[0].B[0].C[1].c1" value="">
<input type="text" name="A[0].B[0].C[2].c1" value="">
When submit the form, these values are not stored into ActionForm class and giving runtime error.
Can you help me in this case.
Thanks.