Reputation: 454
How to Import Data from Excel sheet to DB Table through Oracle ADF ? using Input file ?!
Upvotes: 0
Views: 4082
Reputation: 454
Thanks for answers ,
I solved the issue by using Apache POI to parse excel sheet to java objects
Steps :
<af:inputFile/>
component in jsf or jspx page.Upvotes: 1
Reputation: 72
if you can Saved excel file as .CSV format. (Without excel functions) then you can upload file in to system using inputfile component
Upvotes: 0
Reputation: 3347
I would consider the use of Apache POI - which gives a java API to read MS Office VB Model. Then simply load the data into your VO(s) and commit.
Upvotes: 0
Reputation: 1129
To upload the file use standard implementation of:
<af:inputFile/>
For parsing the Excel file, there is no inherent java support, but I've used Apache POI in the past.
http://howtodoinjava.com/2013/06/19/readingwriting-excel-files-in-java-poi-tutorial/
Upvotes: 1