In order to get a grasp of this, it would be helpful if you read the following:
Succeeding With Struts: Dynaforms By James M. Turner http://www.developer.com/java/web/article.php/2214681 Succeeding With Struts: Indexed Properties and Beans as Properties By James M. Turner http://www.developer.com/java/ejb/article.php/2233591 Succeeding With Struts: Dynamically Sized Forms By James M. Turner http://www.developer.com/java/ejb/article.php/10931_3321521_1 Succeeding with Struts: Dynamically Allocated Forms By James Turner http://www.developer.com/java/ent/article.php/10933_3567701_1 Have fun! Eric -----Original Message----- From: news on behalf of Laurie Harper Sent: Wed 7/30/2008 4:53 PM To: user@struts.apache.org Cc: Subject: Re: struts record output and entry cpanon wrote: > Hello > I am having a difficult time designing and implementing an interaction of > displaying and accepting user input of multiple records at once. I can > create a collection of records, but records are complex, composed of other > objects that are themselves composed of text strings that I want rendered as > either simple html input boxes, checkboxes or radio. I have a sense that I > need to use the iterate to get iterate over the total collection, but how do > I record by record render the html input elements. Furthermore what do these > look like to the action that will receive the post? A simpler version of > this is being done on shopping carts a checkbox on each line, but that may be > hard coded. Is the way I need it even possible with struts 1.1? Without knowing anything about what your data structures look like, it's hard to offer specific advice; are you working directly with record sets? with business model classes persisted via JPA? etc. At a high level, what you want to do is certainly possible. How easy it will be will depend on what your data model looks like and whether you have the flexibility to change it. I would suggest you start out by reading up on how Struts manages the mapping between model data and HTML forms, and especially how data conversion works. Then build a simplified prototype that works with a minimal data model and build up from there until you have something representative of the end goal. It will be easier to get help when you have specific questions you can ask. L. --------------------------------------------------------------------- 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]