D
Dave
I'm looking to implement a feature into a JSP web app which will allow users
to import a CSV file into a database. My thoughts are that the process would
involve the following steps:
1) Transfer the CSV file from client to web server.
2) Have a simple Java application check folder location intermittently for
new files in upload folder on website
3) If a new file has been uploaded then parse the CSV into a collection of
JavaBeans
4) Use JDBC to import each JavaBean into table
My questions are the following:
- Is this the best way to achieve this (bearing in mind each row will need
to be validated)?
- What is the most appropriate method of tranferring a file to a JSP web
server?
- How should I transfer the JavaBean data to the SQL database - import each
bean one-by-one?
Any advice would be appreciated.
to import a CSV file into a database. My thoughts are that the process would
involve the following steps:
1) Transfer the CSV file from client to web server.
2) Have a simple Java application check folder location intermittently for
new files in upload folder on website
3) If a new file has been uploaded then parse the CSV into a collection of
JavaBeans
4) Use JDBC to import each JavaBean into table
My questions are the following:
- Is this the best way to achieve this (bearing in mind each row will need
to be validated)?
- What is the most appropriate method of tranferring a file to a JSP web
server?
- How should I transfer the JavaBean data to the SQL database - import each
bean one-by-one?
Any advice would be appreciated.