Solved

how to parse all the files in the directory entered by a web form?

Posted on 2004-10-14
9
215 Views
Last Modified: 2010-03-31
dear experts,

i have a web page which allows users to enter a directory of their local machine. after user "submit" the entry, my application will parse all the files in the directory.

I am thinking of using Upload and then File Process. However, I can only find how to upload file, not a directory with all the files in the directory. Please help. thanks.
0
Comment
Question by:dodowoman
9 Comments
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 12310151
Hi dodowoman,

Do you need the files on the server for any other purpose than to parse and process? I.e. do you need to store those files, or are you simply providing a result back to the client?

If you don't need to store the files on the server, I would suggest using a signed applet for two reasons: 1. there is no file transfer involved, 2: no server resources are required for processing the files as the processing is done on the client.

Cheers!

\tt
0
 

Author Comment

by:dodowoman
ID: 12310197
thanks.
yes, I don't need the files,but only the results.

Is there an example that you could point it out to me? thanks again.
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 12310292
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 14

Accepted Solution

by:
Tommy Braas earned 34 total points
ID: 12310642
orangehead911,

Here's an example for signing an applet:
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html

You need to sign the applet in order to gain access to the local file system. An applet runs in what is called a sandbox, and is not allowed by default to open network connections to hosts other than the one it came from, nor is it allowed to read/write files.

\t
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 33 total points
ID: 12310741
You'll *have* to use a signed applet. Browsers don't support uploading multiple files, unless you place n controls for n files on the form
0
 
LVL 8

Assisted Solution

by:kiranhk
kiranhk earned 33 total points
ID: 12312242
you can read this thread
http://www.jguru.com/faq/view.jsp?EID=303625

and also you can check out these

http://jupload.biz/en_2.html
http://www.uppri.com/



0
 
LVL 8

Expert Comment

by:kiranhk
ID: 12498127
did any of the answer help you?? havent heard from you for a long time
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question