I've read the Struts User Guide, "Programming Jakarta Struts", searched
Google, and asked a couple of acquaintances, but have yet to find a
definitive answer to whether Struts can help me in the following situation.
The closest thing I've found is a reference to IndexTags under Struts
Resource.

I have a form which correctly displays information found in a collection of
beans.  However, each piece of displayed information is potentially
updateable.  When the form is subsequently submitted, does Struts
rebuild/update the collection of elements?  I suspect it doesn't because
attempting to retrieve the collection from the form bean returns null.  If
not, any suggestions as to how I should handle this?  Shall I resort to
using straight html elements with a naming convention and Java scriptlets,
as opposed to trying to use the struts html element tags?

Sample portion of JSP:
<logic:iterate name="selectedBean" id="element" property="elements"
type="xxx.yyy.ElementBean" indexId="rowNum" >
  <tr class="<%= rowNum.intValue() % 2 == 0 ? "evenRow" : "oddrow" %>" >
    <td align="left"><html:text name="element" property="propertyA"/></td>
    <td align="center"><html:checkbox name="element"
property="propertyB"></html:checkbox></td>
    <td align="center"><html:checkbox name="element"
property="propertyC"></html:checkbox></td>
  </tr>
</logic:iterate>

I am using Struts 1.0.2 and Tomcat 4.1.12.

Any assistance, or confirmation that this is not possible with Struts will
be appreciated.  Thanks.

Greg Bearth
Fourth Generation, Inc.
175 East Fifth Street, Suite 251
St Paul  MN  55101
mailto:[EMAIL PROTECTED]
(651) 260-7643



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to