Results 1 to 2 of 2
  1. #1
    sandeepsai17 is offline Member
    Join Date
    Jun 2009
    Rep Power

    Default inserting values from jtable into database

    hi to all , i am facing a problem with jtable when inserting jtable values into database.My problem is ,for example i have three columns,and user enters the corresponding data into three columns ,for example jtable has say rows and i have one submit button at bottom of table.After filling the data into all rows ,when the user press submit button ,data is inserted into database.There is no problem in this situation.Now consider user enters only 10 rows and he didn't enter submit button ,bcs of some power failure prblm system shutdown suddenly .Now my i want to store these 10 rows in a collection and again when started the application i want to insert these 10 rows values automatically into database .Please consider that user information is very critical information.I don't know to do this pls give me a idea how to start this.
    thaks to all.

  2. #2
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    My sugg is please avoid Jtable to enter the date into database.
    Why i am saying is,if your date is so complex ,your application would be complex.
    Instead of JTable ,you can use Text filed for even 1000 records.It does not affect the system..
    (Living @ Virtual World)

Similar Threads

  1. editing jTable then writing new values to database!
    By sweet angle in forum AWT / Swing
    Replies: 6
    Last Post: 01-27-2009, 06:07 PM
  2. Inserting data to database from the form
    By Ms.Ranjan in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-17-2008, 02:06 AM
  3. Replies: 0
    Last Post: 02-07-2008, 09:57 AM
  4. Inserting file in to database
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-07-2008, 09:39 AM
  5. Replies: 0
    Last Post: 12-24-2007, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts