Hi Olivier In your case you could have an action create and populate an ArrayList with empty passenger objects, add the list to a form, put the form into scope and forward to a jsp. Then in the jsp iterate over the list displaying input fields for each passenger object...easy...ish...
Jon Ridgway -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 16:40 To: [EMAIL PROTECTED] Subject: Really dynamic forms Hi ! Contrary to DynaActionForm which are rather declarative forms than dynamic forms, I have a need for building forms that are parametric. For instance, the Internet user specifies the number of elements he requires, and the system builds dynamically a JSP form containing as many fields as the given number. For instance, for a trip, he gives the number of passengers (let's say 3) and the next form he sees contains 3 fields named for instance passengerName1, passengerName2 and passengerName3. Since I don't know how many fields there will be, how can I design an ActionForm handling this ? If I were to use a DynaActionForm, I would nonetheless be compelled to specify the fields in the struts-config.xml file. Hope this makes sense. Thanks for your help. Olivier Schmeltzer ---------------- Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et secrets. Ce message est adresse a l'individu ou l'entite dont les coordonnees figurent ci-dessus. Si vous n'etes pas le bon destinataire, nous vous demandons de ne pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de votre systeme. The information contained in this message is privileged, confidential, and protected from disclosure. This message is intended for the individual or entity adressed herein. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others ;also please notify the sender by replying to this message, and then delete it from your system. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> The contents of this email are intended only for the named addressees and may contain confidential and/or privileged material. If received in error please contact UPCO on +44 (0) 113 201 0600 and then delete the entire e-mail from your system. Unauthorised review, distribution, disclosure or other use of this information could constitute a breach of confidence. Your co-operation in this matter is greatly appreciated. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

