File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Updating DB using Vector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Updating DB using Vector" Watch "Updating DB using Vector" New topic

Updating DB using Vector

Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295

I have some fields, in the JSP page, say field1, field2, field3.
So, as and when a user selects the values for these fields i wish to store it in a vector. Then i want to update the vector into the database table.

That is wait for the user to finish all his value selections and then update at last. Help in this regard is highly appreciated.

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

what do you have so far?
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Stefan,

Thanks a lot for the interest. I have a JSP, with the three dropdowns and also a bean to connect to the DB. Then i am able to fetch the data and populate the dropdowns from the DB. I have a servlet to take the data to the DB, after the user has selected and hit the Submit button.

Now, all i need is to submit the form to the same form, get the values that the user selects for the first time, into a row, second set of values into second row and so on, till he hits the Finish button.

The fields are ProjID, Activity, Resource Name, Start and end Date. For the date, I have the date picker widgets and manipulate the date using a Java Script. This is what i have. Am i clear in stating the problem?

Expecting a solution
I agree. Here's the link:
subject: Updating DB using Vector
It's not a secret anymore!