Results 1 to 2 of 2
  1. #1
    syedabu is offline Member
    Join Date
    Feb 2010
    Posts
    23
    Rep Power
    0

    Exclamation help me to finish my project..

    i create the database in sql..this database contains table..the tables contains the following fields..
    these are
    1) sno
    2)mark
    3)name

    i create a text file is present the csv format
    it contains the following

    sample.txt

    1\syed\75
    2\ram\85
    3\raj\90
    .
    .
    .
    .

    it contains lot of records.

    my problem is i read the file line by line.I split the file using substring like '\' use text spliter..i read the first line in this value 1 is store into array[0] and value syed store into array[1] and 75 is stored into array[2].
    then store into table.then the variables become zero...
    again read a next line and store into the table vice versa.

    please i doing in project in j2ee struts..i take the file via jsp and using struts concept...please clarify my doubt.

  2. #2
    FacaNaCaveira is offline Member
    Join Date
    Jul 2010
    Location
    Rio de Janeiro, Brazil
    Posts
    8
    Rep Power
    0

    Lightbulb

    Hello syedabu,

    I don't understand you problem. Your problem is, do you want to transfer the data from CSV to you database?? is it right??

    Abração:cool:
    Max

Similar Threads

  1. I know there's an error, let me finish typing!
    By Stravant in forum Eclipse
    Replies: 1
    Last Post: 12-26-2009, 03:26 PM
  2. Finish Java Application
    By ojsimon in forum Jobs Offered
    Replies: 8
    Last Post: 12-07-2009, 04:25 PM
  3. Replies: 20
    Last Post: 06-03-2009, 05:33 PM
  4. Next, Finish Buttons !!!
    By pele in forum SWT / JFace
    Replies: 1
    Last Post: 07-14-2007, 05:22 PM

Posting Permissions

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