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

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
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 fields within

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
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 JSP page that will display quantity

Re: Dynamic form fields on ActionForm

2003-10-08 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 in the list

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
. 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

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
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 JSP page that will display quantity input fields for a dynamic

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Cornellious Mann
. 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 fields

Re: Dynamic form fields on ActionForm

2003-10-08 Thread Adam Hardy
, 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 JSP page

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

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

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 tr td class=datainput type=checkbox name=feelistinfo[0].associated value=Y checked=checked

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 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

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 handle

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

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Mark Lowe
() ); } ... 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 an ActionForm. I have a JSP page that will display quantity input fields for a dynamic list of products. I

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Cornellious Mann
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 don't know how many