Suppose I have a parent that has 1 to many children underneath it. If I want to display the children on a jsp page and let the user edit each child, how do I set up my struts-config file for that form since you don't know how many form elements to set up?
It seems like struts-config would be unaware of the number of elements in the collection you are iterating over. It seems the form configured in struts-config would contain a Collection property like "children" (public Collection getChildren())and you would code a logic:iterate tag in your jsp to iterate over the "children" in the collection. Matthew Marquand Object Ovation, Inc.
This is a situation in which I would prefer to use regular ActionForms, as opposed to DynaForms. And it also might be necessary to keep the form in session scope if you are submitting to an action designed to use the same form or you might get something like an IndexOutOfBounds Exception. [ December 20, 2002: Message edited by: Jason Menard ]