• Post Reply Bookmark Topic Watch Topic
  • New Topic

To read data from XL sheet & store it in database

 
Neela Sathesh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

Pls clear my doubt.

what i need is----

I will give the input of one excel file in the text box.The excel sheet will contain many fields such as id,name,location etc..,

After getting the input of that excel file what i need to do is that read the contents of that file & store it in the database.I need to use only JSP CODE.Is it possible to read the contents of an Excel file & store it n Database.

On ur reply,
With rgds,
Neela.N
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35716
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neela,
Yes it is possible, but not recommended to do all that in JSP. Look into JDBC for the database access part.

Is the file on the user's machine or the server? If the user's machine, you need to upload it first. Then you can use a library that reads Excel (such as POI/HSSF) to get the relevant columns.
 
Neela Sathesh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

I could not clearly understood.Could u give me the sample code or doing this
 
Paul McKenna
Ugly Redneck
Ranch Hand
Posts: 1006
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using JExcel API

JExcel API
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!