Arron Bates has just completed a taglib for allowing better nesting. Quoting his contribution mail: ----- For a built version and the updated example (I didn't want to send more than was necessary to provide the source)... http://www.keyboardmonkey.com/StrutMonkey/downloads/index.html
Updated Running example... http://www.keyboardmonkey.com/StrutMonkey/ ----- It's not (yet?) in struts itself, but the libs as presented here are very usable (I've used them already, and they work like a charm). For documentation, consult the struts-dev mailinglist archives for 'Arron Bates'. hth, tomK > -----Original Message----- > From: Alex Colic [mailto:[EMAIL PROTECTED]] > Sent: maandag 12 november 2001 21:25 > To: Struts > Subject: Help!!Banging my head trying to figure out how to do this. > > > Help, > > I can't figure out how to structure this. I am trying to make > a dynamic > program that updates fields in a table. Essentially the > program should work > as follows: > > A user logs in. I get a list of objects that they can modify. For each > object I get a list of tables. For each table I populated a > vector of Field > objects. > All this goes into two Maps. The first map is(Object, Tables) > the second map > is (tableName, tableDefinition) with the tableDefinition > object having a > vector of fields. > > Hopefully this is not too confusing at this point. > > I use an iterate tag to iterate through the nested maps to dynamically > create a nav bar of: > > object 2 > | > table name > table name > object 2 > | > table name > table name > > Now the fun part. I can select a table and iterate through > the tables fields > and create a debug html table listing field name, field > caption, field type, > field default value. > > Now I need to create a form created from these fields. And > the form when > submitted need to populate the fields default value? > > First question: > > How does a form populate a field that is within a ArrayList > that is within a > map that is within another map? > > How can I create the input fields at run time? > > Any help is really appreciated. > > Thanks > > > Alex > > > -- > To unsubscribe, e-mail: > <mailto:struts-user-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>