aspose file tools
The moose likes JSP and the fly likes Reading excel files in folder by giving folder name as input Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Reading excel files in folder by giving folder name as input" Watch "Reading excel files in folder by giving folder name as input" New topic
Author

Reading excel files in folder by giving folder name as input

A Chauhan
Greenhorn

Joined: Nov 21, 2006
Posts: 15
Hi,

I have to read some excel files from a folder. Can anyone have an idea to give input as folder name and java will read all the excel files in that folder. Ultimately i have to import the data from those excels to oracle database.

Thanks in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
Is this question about how to access all files in a directory given the directory name, or about how to open XLS files?

If the former, check out the java.io.File.list() and listFiles() methods.

If the latter, check out the Apache POI library; it can read XLS files.


Android appsImageJ pluginsJava web charts
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
As he is posting this at the JSP forum, I am afraid that he is talking about a folder at the client machine.

If this is true and you want to send the files from client to server using a web application, then you need a signed applet or web start application for this.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Reading excel files in folder by giving folder name as input
 
Similar Threads
Read a .xls,.xlsx file format using XSSF
Read Excel values and store in to Database
Query Regarding Reading Excel files at Runtime
Reading excel file from relative path
servlet beginner confused