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
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
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
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
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
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
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
>>
> >>From
> >>
> >>>>the
> >>>>
> >>>>
> >>>>>research I have done it sounds like ActionForms
> >>>>
> >>>>can
> >>>>
> >>>>
> >>>>&
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
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
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
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
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
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
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
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
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
> 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
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
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
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
21 matches
Mail list logo