At 10:45 AM 10/27/99 +0200, you wrote:
>Hi all,
>
>I would like to implement an upload facility :
>
>The user should be able from an html form to select a file from his local
>resources (by browsing his local system files). Then, the form
>posted to a servlet would upload the file and update a repository on the
>server side.
This can be done as follows:
[1] Use the HTML input type "file" in your form (the easy part). The form
should use a "post" method.
[2] The JSP that receives the resultant request will be receiving a multi-part
request. You will need to parse this. One way to do this is to use
MultiPartRequest class available at:
http://www.servlets.com/resources/com.oreilly.servlet/MultipartRequest.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html