Uploading and reading excel sheet

Hi, I have a problem,I want to upload an excel file .When a user click submitted button .The uploaded file read in actionclass and record is submitted to database through ejb. I am not able to do the same using DiskFile or FormFile.Please help me. thanks anil

I'd recommend using the open source project Jakarta POI for reading an Excel file. You can use org.apache.struts.upload.FormFile to upload the file, then use FormFile's getInputStream() method to pass it to the POI API.