Servertec Samples
Samples
FileUploadServlet

Return

 

Demonstrate the use FileUpload and MultiPartForm classes in a Servlet.

Use the following notes to configure your server to use this Servlet:

  1. Add fileupload_dir\classes and fileupload_dir\samples to the CLASSPATH.
  2. Copy fileupload_dir\samples\fileuploadform.html to the server's document directory.
  3. Add a Servlet definition for FileUploadServlet.
  4. Add an Alias definition associating URI /fileupload.html with FileUploadServlet Servlet definition.
  5. Restart the server.
  6. Open an Browser Window and enter:
    http://hostname{:portnumber}/fileuploadform.html

Click here to view source code.

 top of page
Copyright © 2001-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Mon Sep 05 14:26:06 EDT 2005