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]