> -----Original Message----- > From: Mark Lowe 2 [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 30, 2003 10:29 AM > To: Struts Users Mailing List > Subject: Re: How to instantiate a DynaValidatorForm > > > (DynaActionForm) myForm = (DynaActionForm) form;
That's casting, which is probably what he should do > > > > Giovedì, 30 gen 2003, alle 17:23 Europe/Rome, Boris Folgmann > ha scritto: > > > I've defined a DynaValidatorForm in struts-config.xml without any > > classfile > > in WEB-INF/classes. A JSP using this Form for data input > and validation > > works well. But how can I instantiate an object of this > > DynaValidatorForm? > > I need to generate an array of form objects so that I can > print them > > using > > <logic:iterate> in a table. > > Using new org.apache.struts.validator.DynaValidatorForm() is wrong, No, it's not wrong, but it's more difficult than letting ActionServlet instantiate the form and set it up for you. > > because > > I need an object of the derived class and not the base class. So > > what's the > > class name of the Form? > > > > Hope somebody can help. > > > > tnx, > > boris > > > > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]