RE: How to handle formbean for dynamically generated form?

2002-07-19 Thread Kamholz, Keith (corp-staff) USX

It seems to me that you should use an Array of Strings to represent those
fields that will be duplicated.  When the form is submitted, each array will
be automatically filled with the values of the specified property.  It's
pretty easy to do.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 8:30 AM
To: 'Struts Users Mailing List'
Subject: How to handle formbean for dynamically generated form?


Hello,
I have a scenario here. I am generating a form which is dynamic. For
example this form has some fields like FirstName, Last Name, Email Address,
Phone Number. These fields are 1 set. When the user enter the number of
sets, the form will be generating. let say user selects 3 sets, the form
will displayed the above fields 3 times. I want to know how can I handle
this situation using FormBean. I don't have maximum number for this set.
User can enter any number to generate.

I appreciate any helps.

Thanks,
Manju

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




RE: How to handle formbean for dynamically generated form?

2002-07-19 Thread Ramu, Manjukumar [PRDUS]

Keith,
Thanks for the reply. In JSP I am using firstname1,
firstname2etc..depending on the sets the user selected. Now my problem
is to get the values in my Action Class. I am not yet clear how to use
formbean in this case.

You have mentioned to use array of strings. How the form bean will process
these values.

I appreciate your help.

Thanks,
Manju

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 8:39 AM
To: 'Struts Users Mailing List'
Subject: RE: How to handle formbean for dynamically generated form?


It seems to me that you should use an Array of Strings to represent those
fields that will be duplicated.  When the form is submitted, each array will
be automatically filled with the values of the specified property.  It's
pretty easy to do.

~ Keith
http://www.buffalo.edu/~kkamholz



-Original Message-
From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 8:30 AM
To: 'Struts Users Mailing List'
Subject: How to handle formbean for dynamically generated form?


Hello,
I have a scenario here. I am generating a form which is dynamic. For
example this form has some fields like FirstName, Last Name, Email Address,
Phone Number. These fields are 1 set. When the user enter the number of
sets, the form will be generating. let say user selects 3 sets, the form
will displayed the above fields 3 times. I want to know how can I handle
this situation using FormBean. I don't have maximum number for this set.
User can enter any number to generate.

I appreciate any helps.

Thanks,
Manju

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