Patrick,
You probably want to look into using the HTML form element type of FILE.
You can put this on a form and it will give a text field to enter a file
name with a browse button beside it. It's like this:
<input name="uploadFile" type="file">
It then sends the file with your form results as a multi-part MIME, if I
remember correctly. I haven't tried handling this with JSP, but I suspect
it's possible. There is probably code available somewhere that does it for
you already if you look. You could then do whatever you want with the file.
HTH
Shannon Thornton
Senior Web Developer
Nextel Communications
-----Original Message-----
From: Patrick Regan [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 07, 2000 9:32 AM
To: [EMAIL PROTECTED]
Subject: FTP From JSP
I need to have a user specify a file residing on their local hard drive
and then FTP it to where my web server is running (some directory). I
would assume I would need to use FTP within my java code to do it. But
this runs on the server so I would not have access to the local hard
drive. How would I upload a file?
Pat
===========================================================================
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