If your need is to do the upload as if it is part of your web-user's web
experience in your site (i.e.- you don't want them to use tools like FTPs
nor use a shell to drive ftps, since such will require ftp client software
to be existent and server side ftp site to be created)..
Well, based on my experience:
1) you will need to write an applet to allow user to select the file he/she
wants to upload from his/her client PC accessible drive.
2) you will need to use socket programming to actually send the file from
the client machine to the server. Details of the programming is:
2.1) Client applet will post a message to the server to tell the
server-side java component to start listening for a socket connection
request. JSP/servlet can be used to process the posted data.
2.2) Client applet will issue a socket connect request to the IP address of
the server
2.3) Upon acceptance of connection on the server-side, the client should
start reading & sending the data thru the opened socket connection until all
bytes were sent.
2.4) Server-side component should accept bytes received and save the file
somewhere on the server drive.
2.5) Close the socket connections both on server-client and close the
transferred file.
That is it. The task sounded so easy but just like what I discussed, a
little programming trick is needed. {:)
Have fun & good luck !!
-Ger
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Leon Daanen
Sent: Monday, June 12, 2000 10:53 PM
To: [EMAIL PROTECTED]
Subject: Re: File uploading
Look at http://www.jspsmart.com
greetings,
Leon
---------------------------------------------------------------
name: Leon Daanen
E-mail: [EMAIL PROTECTED]
Tel.: +31 77 359 5172
Fax.: +31 77 359 5337
Location: 3G20
Oce Technologies B.V.
www: http://www.oce.com
Tel.: +31 77 359 2222
P.O. Box 101
5900 MA Venlo
The Netherlands
---------------------------------------------------------------
Opinions and views expressed in this message
are my own, they do not necessarily represent
those of Oc�
---------------------------------------------------------------
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Rehman Amad
Sent: Tuesday, June 13, 2000 6:58 AM
To: [EMAIL PROTECTED]
Subject: File uploading
Hi All!
Can anyone help me finding out the possible methods of uploading a file from
Cilent side to the Server.
Provided we are having Java at the Server side.
AMAD
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets