Basic cofig file set up uses LazyValidatorForm for the bean <!-- Form Beans --> <form-beans> <form-bean name="lazyForm" type="org.apache.struts.validator.LazyValidatorForm"/> </form-beans>
Associate the lazy bean with your action. <!-- Action Mappings --> <action-mappings> <action name="lazyForm" path="/yourpath" type="your.action.class" scope="session" validate="false"></action> </action-mappings> if you want all of the parameters then you can loop over the map or you can get them by param name individually. Map formMap = lazyForm.getMap(); Iterator params = formMap.keySet().iterator(); while (params.hasNext()) { Object param = (Object) params.next(); out.println((String)param + " = " + (String)formMap.get(param)); } Bryan LaPlante ---------- Original Message ----------- From: "Rivka Shisman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Tue, 7 Mar 2006 16:40:47 +0200 Subject: RE: dynamic input form > Hi Niall, > > Can you please explain how do lazy dyna beans solve my problem? > > Thanks > Rivka > > -----Original Message----- > From: Niall Pemberton [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 07, 2006 3:54 PM > To: Struts Users Mailing List > Subject: Re: dynamic input form > > You could use lazy dyna beans: > > http://struts.apache.org/struts-action/userGuide/building_controller.htm > l#lazy_action_form_classes > > Niall > ----- Original Message ----- > From: "Rivka Shisman" <[EMAIL PROTECTED]> > Sent: Tuesday, March 07, 2006 1:46 PM > > Hi friends, > > I need to present my user an html form whose fields are built > dynamically using data I get from the database. > > I need your advice on how to do that. > > Thanks > > Rivka > > --------------------------------------------------------------------- > 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] ------- End of Original Message ------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]