I'd choose either one of these ways to accomplish what you want:
2) You can do a submittal each time the [+] is pressed and forward to the same jsp each time with 1 data entry row on it.
3) When they hit the [+] button, just forward to a new screen where they can enter the data, and when they submit return to the original page.
Another option is AJAX which I try to avoid completely. [ October 30, 2006: Message edited by: Dom Lassy ]
Joined: Sep 10, 2004
the call is made with:
BUT: 1. how can I insert a bean property to jscript??? I tried:
2. what if I have an array (arrayList) of travelers, how do I call them in the property, I mean traveler is only for ONE traveler (and I need travelerS)? traveler.fname[x]???
First, they have an error in all of the examples. As you can see, the constructor's name is not the same as the class's name.
Second, being less pedantic , I realize I need to create a collection of objects (in my case userList) so when the submit button is pressed, I can retrieve the userList and iterate each user.
input type="text" name="traveler.fname"
subject: [+] Button to add newly line of information on the jsp page