Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: storing data using form

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Thanked 0 Times in 0 Posts

    Default storing data using form

    Hello everybody,

    I am new to java programming.

    Actually I have designed a form in which I have 5 fields & a submit and add button.
    My requirement is that I need to save 100 data in database, but at a time I can enter only 1 set of data. And as it is not nice to make connection with database each time i.e 100 time.
    I need that each time i enter data it should be stored some where and finally submit into database together.

    Any kind of help shall be appreciated.

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: storing data using form

    I don't get how 5 snowballs into 100, but if it is the same table just separate the entries by a comma (most databases I know will allow this sort of entry). If on the otherhand, they are all different tables, I'd first re-evaluate the database design then if there must be that many queries and you are worried it will slow down the client, use something like a message driven bean for asynchronous processing and do your entries in a transaction.

Similar Threads

  1. J2ME-Show RMS data in tabular form
    By Sunil Raghuvanshi in forum Java ME (Mobile Edition)
    Replies: 1
    Last Post: January 24th, 2011, 08:06 AM
  2. Storing data
    By Joyce in forum Collections and Generics
    Replies: 1
    Last Post: September 20th, 2010, 09:16 AM
  3. Storing data from a socket to a file in real time
    By colossusdub in forum Java Networking
    Replies: 0
    Last Post: March 2nd, 2010, 09:10 AM
  4. Java Swing :Back Button from one form to another form
    By srinivasan_253642 in forum AWT / Java Swing
    Replies: 1
    Last Post: December 26th, 2009, 09:51 AM
  5. Replies: 4
    Last Post: August 13th, 2009, 05:54 AM