S2? Build an array or map of the form fields and provide an appropriate setter in the action.
Probably easiest to build the form tags by hand (i.e., non <s:xxx.../> tags). So you'd iterate over the dynamic fields, create the tags. On submit you'd end up with a list (or map, or whatever) of the values. Did that help? d. --- Al Sutton <[EMAIL PROTECTED]> wrote: > Any takers?, even saying "Nope, not possible in a > nice way" would be useful. > > From: "Al Sutton" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" > <user@struts.apache.org> > Subject: Best method for dynamic fields round trip > Date: Tue, 15 May 2007 15:59:02 +0100 > > I've got an application which has a dynamic number > of customisable fields > attached to each record. The customisable fields > have a display name, an > internal name, and a value. Some records have no > fields and there is no way > of determining at compile time the maximum number of > fields a record can > have. > > So my questions are; > > 1) What's the best way to get the dynamic fields to > a JSP so the user can > edit them? > 2) What's the best way to get the modified data back > into an action so the > action can update the data? > > I'm ideally hunting for a non-AJAX based solution > because this app may be > used on PDAs which don't support JavaScript. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] ____________________________________________________________________________________Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]