How to read Data From Excel File Using servlets,jsp
nagavenkata prasadch
Greenhorn
Joined: Apr 21, 2006
Posts: 2
posted
0
Requirements: 1) Read data from Excel File : Suppose the File contains: Empnumber, Empname, and Salary columuns.. There will be thousands of rows.
-> we have to read data from Excel file and validate the data( i.e, the Empnumber must be varchar, Empname must be character, and Salary must be numeric). -> if the data is valid then store the data in the database table1.
-> if the data is not valid then find out the location of the invalid data with index number and the column which is invalid and store the invalid data with index number in a database table2.
There is nothing in servlets or JSP that will help you read the Excel file. That is the domain of other tools.
You would use servlets and JSP to upload a file from a client system, but the actual reading of the file is independent of whether it's in a web app, a Swing app or even a command line application.
As such, I've moved this to the Other Open Source forum, where tools such as POI are discussed.