This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
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
posted 10 years ago
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.