Looks like you are not properly initializing your "fields" (ArrayList)
in FormActionForm. You should initialize it while declaring or in the
reset()
On Sat, 15 Jan 2005 17:06:33 -0800, Oleg <[EMAIL PROTECTED]> wrote:
> I finally got it to display, no problem, however there is an error
> when I submit:
>
> java.lang.NullPointerException
> org.apache.commons.beanutils.PropertyUtils.getIndexedProperty
>
> Here is what I got so far.
> Struts Version 1.2.4.
>
> My FormActionForm includes an ArrayList fields of Bean Field.
>
> FormActionForm:
>
> public ArrayList getFields() {
> return fields;
> }
>
> public void setFields(ArrayList fields) {
> this.fields = fields;
> }
> ....................................................
>
> Field
>
> private String label;
> private String name;
> private String value;
> private String type;
> ... with all getters and setters ..........
> .......................................................................................
> JSP (displays no problem!!):
> <logic-el:iterate name="formActionForm" property="fields" id="foo"
> indexId="ctr">
> <tr>
> <td><html-el:text property='<%= "fields[" + ctr + "].label" %>' /></td>
> <td><html-el:text property='<%= "fields[" + ctr + "].value" %>' /></td>
> <td><html-el:checkbox property='<%= "fields[" + ctr + "].required" %>'
> /></td>
> </tr>
> </logic-el:iterate>
>
> Hit the wall here, big time.
>
> Thanks,
> Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]