Thanks, John, for the help.
 
Thanks, also, for many ideas on how to upload files through JSP/Servlets. Several mention Jason Hunter's work, which relies on RFC-1867.
 
Jason's excellent book, Java Servlet Programming, gives a class (called MultipartRequest, p.107) that does just that, using Form POST to implement file upload.
 
The drawback to POST uploads may be only that suggested by Jason's warning: POST uploads are experimental.
 
(Jason, what does the "experimental" warning mean, in terms of implementing your code in fault intolerant environment? We'll test for Netscape 3.0/IE4.0 browser compatibility.)
 
Any other ideas on classes or tutorials that implements an FTP style upload ( bypassing any drawback of POST uploads), would be greatly appreciated.
 
Thank you in advance for all your thoughts.
 
Phil
 
-----Original Message-----
From: John Wheeler <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, January 13, 2000 4:28 PM
Subject: Re: FTP methods

 
----- Original Message -----
From: Phil
Sent: 11 January 2000 21:36
Subject: FTP methods

I've never programmed FTP methods and would please appreciate some direction.
 
Our JSP needs to upload files from a client machine, probably through a servlet.
 
Any advise on, or recommended tutorials on, how to upload files from a client machine using Java Sevlets (or JSP)?
 
Thank you in advance for your thoughts.
 
Phil 
 
You want to look at uploading using "multipart/form-data". There is an RFC on this (1834?). Use a JSP script to display your form and uploaded files, and submit to a servlet to do the upload. There is almost certainly some example code available. I have done this, but can't send you complete source code for contractual reasons. If you need some more concrete hints, feel free to e-mail me.
 
John Wheeler.

Reply via email to