Dave Purnell

Greenhorn
+ Follow
since Jul 19, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dave Purnell

Hi,
I'm creating a JSP which contains a variable number of rows in a table on the resulting webpage. Each of these rows is being created from an array from a class containing various client information. Some of this info is put into text boxes on the form which will allow the user to update the values.
This is where I'm stuck. How do I now get the values from this variable number of text boxes back into the array in the client class once the user clicks the submit button?
In other pages I'm letting the JSP automatically update the values in the class fields by naming the input fields on my webpage the same as in the class, which works fine in my other pages where I have a fixed amount of input data, but I'm not sure if I can do this with a variably constructed number of text input boxes.
I'm probably not being very clear, but any help or suggestions would be greatly appreciated!
thanks,
Dave
19 years ago
JSP
Hey all,
I'm very new to all this Java & web technology, but I think I'm catching on. There's just this one problem that's got me stumped right now...
From a search page I'm calling a servlet to grab an array of clients based on the search criteria then display these clients (client number, name & address) in a table on a results page.
Should this array of clients be created by having an array of beans, where each bean would hold the information for 1 client, or would it be better (easier) to have just 1 bean with an array of each of the client attributes inside?
What would then be the best way of displaying the result bean(s) on a JSP page?
thanks,
Dave
19 years ago
JSP