Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload contents of csv file into database

 
Eduardo Ponce de Leon
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know of a good tutorial on how to upload a file in a jsp page and when you click on the upload button the .csv file will be processed and insert each column into a table in a database?
Thank you
 
Rob Spoor
Sheriff
Pie
Posts: 20497
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out our AccessingFileFormats FAQ, especially the Excel section. It includes several libraries for reading CSV files. I myself have successfully used opencsv in several projects.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic