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.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading and reading excel sheet

 
Anil Prasad
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic