Should I use a collection for this?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Patrick_Bowe
Posted On:   Wednesday, March 12, 2003 01:10 PM

I'm kinda new to java so forgive me if this is an easy question. I've looked though the FAQs and not found a good answer. I have a jsp page that collects some data from a form. I want to send that data to a java program to insert into a database. The date is a number of fields and does allow duplicates. I assume I want to put it into a collection to send to the java program, but I'm not sure what type of collection would handle the data. this is an example of what I want to send: 02172003,1,1.5 02182003,1,1.5 02182003,2,6.5 02192003,2,3.0 As you can see, each row can have duplicates, but each record is unique. Sorry for the   More>>
			
I'm kinda new to java so forgive me if this is an
easy question. I've looked though the FAQs and not
found a good answer.

I have a jsp page that collects some data from a form.
I want to send that data to a java program to insert
into a database. The date is a number of fields and
does allow duplicates. I assume I want to put it into
a collection to send to the java program, but I'm not
sure what type of collection would handle the data. this
is an example of what I want to send:

02172003,1,1.5
02182003,1,1.5
02182003,2,6.5
02192003,2,3.0

As you can see, each row can have duplicates, but
each record is unique. Sorry for the vague description.
I'm not looking for code, just a direction. Thanks.
   <<Less

Re: Should I use a collection for this?

Posted By:   Steven_Martin  
Posted On:   Wednesday, March 12, 2003 01:41 PM

If this data is not changing I would build a bean to contain these values. Then you can place each bean in a list that can be iterated for insertion.
About | Sitemap | Contact