You can use jspsmartUpload on page :
http://www.jspsmart.com
Cheers,
Mehdi
Simon T <[EMAIL PROTECTED]>
16/07/2002 10:10
Please respond to "Tomcat Users List"
To: Tomcat Users List <[EMAIL PROTECTED]>
cc:
Subject: Re: how can a client upload file via an applet
Hi,
this is an example of html code for the file upload
<form ACTION="servlet/UploadTest" ENCTYPE="multipart/form-data"
METHOD=POST>
Which file do you want to upload? <input TYPE=FILE NAME=file>
<input TYPE="SUBMIT" VALUE="Add File">
</form>
You just need a servlet to the processing.
I did a google search and got this url.
http://www.jguru.com/faq/view.jsp?EID=160
Regards,
Simon
[EMAIL PROTECTED] wrote:
>A problem will be an applet cannot, by default, read a file on the client
unless explicitely authorized...
>
>Another is it can only communicate with the server it comes from.
>
>-----Original Message-----
>From: Irina Lishchenko [mailto:[EMAIL PROTECTED]]
>Sent: 16 July 2002 10:27
>To: Tomcat Users List
>Subject: Re: how can a client upload file via an applet
>
>
>On Tuesday 16 July 2002 09:38, you wrote:
>
>
>>hello,
>>i am trying to write an applet that has an file upload service. Users
will
>>able to give the full path of their files to the applet
(c:\files\file1.txt
>>for instance) as input and applet will going to get the contents of this
>>file and write the content to the database which is in the server. how
can
>>i accomplish this task?
>>
>>thanks in advance,
>>
>>serdar
>>
>>
>
>Actually I think that much easier to acomplish this task through
servlet/jsp
>technology. Although if you are very good at applet writing, then may
be...
>
>What about servlet or jsp for file uploading. At www.servlets.com you can
>find libraries which are necessary for file uploading and most likely
some
>useful articles on this subject.
>
>ilis
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>**** DISCLAIMER ****
>"This e-mail and any attachments thereto may contain information
>which is confidential and/or protected by intellectual property
>rights and are intended for the sole use of the recipient(s) named above.
>Any use of the information contained herein (including, but not limited
to,
>total or partial reproduction, communication or distribution in any form)
>by persons other than the designated recipient(s) is prohibited.
>If you have received this e-mail in error, please notify the sender
either
>by telephone or by e-mail and delete the material from any computer.
>Thank you for your cooperation."
>
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>