Yes .. in fact we are doing a similar development here where the number of 
form fields depended on the user input. You can in your Form Bean specify how 
many text fields to you want to display, then in the jsp you can code the 
logic to do so.

Cheers,

victor

On Fri, 12 Apr 2002 20:01, you wrote:
> Hi All,
>
> So...., does it mean, that your can grap from an ActionForm an
> undetermined, at development time, number of input parameters just
> enclosing them in a String[]?
>
> I am looking for a way to make an ActionForm that backs correctly an
> dinamically generated form, and therefore, with undefined number and name
> of parameters known at development time. Any guidance would be appreciated.
>
> Does this relate to the stuff for DynaForms?
>
> Thanks in advance,
>
> Adolfo.
>
>
> From: Victor Hadianto <[EMAIL PROTECTED]>
>
> >Reply-To: [EMAIL PROTECTED]
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Multiple properties
> >Date: Fri, 12 Apr 2002 09:42:20 +1000
> >
> >The good thing with Struts is that you can define multiple text fields
> > with the same name and the getter/setter method to have param/return as
> > string array.
> >
> >Struts will populate the array with the text fields.
> >
> >cheers,
> >
> >victor
> >
> >On Thu, 11 Apr 2002 21:41, you wrote:
> > > I'm writing an application which requires multiple get methods.
> > >
> > > e.g. In my JSP file I'll have the following
> > >
> > > <html:text property="factor1" size="45" readonly="true"/>
> > >
> > > There are 18 of these each requiring a getFactor#() call in my bean.
> >
> >This
> >
> > > isn't very efficient but I really can't see any other way of doing it.
> >
> >Can
> >
> > > anyone suggest a better way of doing this?
> > >
> > > Thanks
> > >
> > > _________________________________________________________________
> > > MSN Photos is the easiest way to share and print your photos:
> > > http://photos.msn.com/support/worldwide.aspx
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]> For additional
> > > commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >--
> >Victor Hadianto
> >---------------
> >Nobody knows what goes between his cold toes and his warm ears. -- Roy
> >Harper
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
>
> _________________________________________________________________
> Join the world’s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]> For additional
> commands, e-mail: <mailto:[EMAIL PROTECTED]>

-- 
Victor Hadianto
---------------
Do you think your mother and I should have lived comfortably so long together 
if ever we had been married?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to