I have an Array in a formBean. I want to update display information
about each object (of class bcSortiRecord) contained in the array list
and also that the user can modify some fields of the same object.
My problem is that, when I submit the form, I get nothing in the Array.
Anyone got any ideas?
here's my JSP:
<logic:iterate id="titleField" name="newsletterForm" property="titles">
<TR VALIGN="top">
<TD CLASS="contentheader" VALIGN="top" WIDTH="7%"><bean:message
key="prompt.newsletter.title"/> <%=fieldCount%>: </TD>
<TD WIDTH="25%"><html:textarea name="newsletterForm"
property="titles" cols="25" rows="4" indexed="true"/></TD>
</TR>
</logic:iterate>
in the NewsletterFormBean
=============================
protected String[] titles = new String [8];
public String[] getTitles() {
return this.titles;
}
public void setTitles(String[] inTitles) {
this.titles = inTitles;
}
in the Action class
=====================
String tempArray[] = aNewsletterForm.getTitles();
ejbBean.setContent(tempArray);