This is a solution with a perl script on the server. I suppose you could
replace the server script with java.
Include this form on your web page:
<form enctype="multipart/form-data" method=post
action=http://yourserver/cgi-bin/savefile.pl>
<input type=text name=filename value="file name"><br>
<input type=file name=filedata><br>
<input type=submit value="send file">
</form>
Here is the server script to receive the file savefile.pl.
# - savefile.pl
# Receive file name and file data into buffer at server.
$|=1;
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
#
# some code is needed to split file name and file data.
#
open(UPLD, "> /$filename");
print UPLD $buffer;
close(UPLD);
print "Content-type: text/html\n\n";
print <<EOF;
<HTML>
<HEAD><TITLE>Thank you very much</TITLE></HTML>
<BODY>
<h2>Thank you for sending your file.<br>
filename: <a href=http://yourserver/$filename>$filename</a> .
<hr>
$buffer
<hr>
</BODY>
</HTML>
EOF
At 10:04 AM 7/26/00 +0800, you wrote:
>Hi, Everybody
>
>I want to design an assignment submission system (a simple web page).
>(1) After the students fill their name and they file names (located at their
>own computer), they click submit
>button.
>(2) How to read the files located at their hard disk?
>
>Java Applet or something else?
>
>Thanks advance
>yangyuexiang
>
>
>----------------------------------------------------------------------
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]