Re: Dynamic form fields on ActionForm

2003-10-09 Thread Adam Hardy
I thought there was something slightly awry in your thinking. I guess that's where examples really do help. Good luck with it, Adam On 10/09/2003 03:15 AM Cornellious Mann wrote: Adam, I missed the point about adding the index to the input field name. I was simply naming the field the same thi

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
Adam, I missed the point about adding the index to the input field name. I was simply naming the field the same thing. It actually worked, but it worried me. Thansk for all of the help! :) --- Adam Hardy <[EMAIL PROTECTED]> wrote: > They're indexed! 0 becomes 0, 1 becomes 1 etc., i.e. > the o

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
I guess my question about order was more of HTML/submit question than a question about arrays. I just want to guarantee that the order of the values being sumitted stay in the order they are on the page. I was simply giving every input field the same name such as "product" and catching the values

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Lynn Guy
I just did this, maybe an example will help Read the database and stuff the data into an arraylist. Stuff the arraylist into the form. Call the page and get something like this change the data and subm

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
They're indexed! 0 becomes 0, 1 becomes 1 etc., i.e. the order they went out with remains the same when they come back in. I think you must be missing the point here somewhere On 10/08/2003 10:34 PM Cornellious Mann wrote: This worked. :) Do you know if the order is guaranteed? From my tes

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
This worked. :) Do you know if the order is guaranteed? From my testing it looks like the values appear in the array in the same order the parameters in the URL line. --- Adam Hardy <[EMAIL PROTECTED]> wrote: > Yes, but because they're indexed, you will see the > result as an array. > > On 10/0

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
or whether the fields themselves are not limited in name or type. If the former, then it would be easy to make a form that defined them all, and to use logic tags to display the needed fields or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the b

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
>> > >>From > >> > >>>>the > >>>> > >>>> > >>>>>research I have done it sounds like ActionForms > >>>> > >>>>can > >>>> > >>>> > >>>>&

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
mer, then it would be easy to make a form that defined them all, and to use logic tags to display the needed fields or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
Hi Cornellious, > >>>>it depends whether you know beforehand what the > >> > >>full > >> > >>>>set of possible > >>>>fields could be, or whether the fields > themselves > >>>>are not limited in &g

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
gic tags to display the needed fields or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a JSP page that will display quantity input fields for a dynamic list of products. I d

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
nd to use logic tags to display the needed > >>fields or not in JSP. > >> > >> > >>Adam > >> > >>On 10/07/2003 09:48 PM Cornellious Mann wrote: > >> > >>>I am wondering what is the best approach to > handle > >>>dy

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
limited in name or type. If the former, then it would be easy to make a form that defined them all, and to use logic tags to display the needed fields or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form field

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Cornellious Mann
gt; all, and to use logic tags to display the needed > fields or not in JSP. > > > Adam > > On 10/07/2003 09:48 PM Cornellious Mann wrote: > > I am wondering what is the best approach to handle > > dynamic form fields within an ActionForm. > > > > I have a

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Mark Lowe
i++) { Product prod = (Product) productList.get(i); System.out.println( prod.getPrice() ); } ... This should help.. Cheers Mark On Tuesday, October 7, 2003, at 08:48 PM, Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form fields within

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Adam Hardy
or not in JSP. Adam On 10/07/2003 09:48 PM Cornellious Mann wrote: I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a JSP page that will display quantity input fields for a dynamic list of products. I don't know how many products will be i

Dynamic form fields on ActionForm

2003-10-07 Thread Cornellious Mann
I am wondering what is the best approach to handle dynamic form fields within an ActionForm. I have a JSP page that will display quantity input fields for a dynamic list of products. I don't know how many products will be in the list until runtime. How can I set up my ActionForm to handl

RE: Dynamic Form Fields

2003-07-10 Thread Alex Shneyderman
> Currently, I have a DynaValidatorForm defined in my web app. Some of > the properties of this form will be completely dynamic. I will read a > database and retrieve an ArrayList. This ArrayList will contain the If I understand you correctly for (Iterator iter = al.iterator (); iter.hasNex

Dynamic Form Fields

2003-07-10 Thread Natalie D Rassmann
Hi, Currently, I have a DynaValidatorForm defined in my web app. Some of the properties of this form will be completely dynamic. I will read a database and retrieve an ArrayList. This ArrayList will contain the form field name, and form field value. How do this with a DynaValidatorForm? Can I

data not repopulated after validation using ActionForm for dynamic form fields

2002-11-15 Thread Vijay Balakrishnan
HI, I am trying to validate a fully dynamic form populated from the database.The validation works fine with an ActionForm with the following properties: private String[] fieldIdMemberIds; private String questionName; private HashMap hashMap = new HashMap(); The problem is repopulating th

Dynamic form fields

2002-02-22 Thread John Regan
I've searched the mail list and cannot find a clear answer to this one! Here is an example of what I need: A user enters the # of Travelers for their vacation in the first jsp of the sequence. In the second jsp I want to display an html:text input field for each traveler's age. what is the simpl