You can do this using a servlet. Browse any file from a client's machine using
the "FILE" type within a HTML form or JSP. Post he form to a servlet that
downloads this file onto the server using a ServletInputStream.
       The code to do this is available on servlet.com , it is also described in
Jason Hunter's book Java Servlet Programming by O'reilly publication.
       Other than the O'Reilly package there are other packages available for
download. If you cannot get it to work let me know I'll mail you the code.


Santosh








Mozhgan Eslami <[EMAIL PROTECTED]> on 10/02/2001 04:29:09 PM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  Upload Via JSP



Hi All,
I want to upload a file via JSP.
I want to write a program that User select a file from client and then
upload the file to Server for process.
How can I do Upload?
Thanks a lot for your helps,
Mozhgan.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to