File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Updating DB using Vector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Updating DB using Vector" Watch "Updating DB using Vector" New topic
Author

Updating DB using Vector

Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi,

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?


http://home.arcor.de/hirnstrom/bewerbung
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Updating DB using Vector
 
Similar Threads
Updating fields
Hibernate: How to disable insert?
How to update user list in chat client
Reading txt file and Searching for records
update a JTable