Results 1 to 2 of 2
  1. #1
    simon is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default how to upload a file using servlet

    I want to write a servlet to upload a file
    I read about jakarta project's commons file upload but can any body please guide me how to use it by sending some sample code?

  2. #2
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Rep Power


    The com.oreilly.servlet.MultipartRequest class is order-of-magnitude easier to use than Jakarta fileupload: | com.oreilly.servlet

    You instantiate an object, then the uploaded file is on your disk at your server machine. The class is just like a vending machine for file upload. For commercial use, however, you have to buy author's book or books.

Similar Threads

  1. how to upload a file?
    By tommy in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 06-30-2008, 02:50 PM
  2. Simple way to upload file via FTP?
    By Hiro ZA in forum New To Java
    Replies: 0
    Last Post: 03-27-2008, 02:27 PM
  3. Applet File Upload
    By genette in forum Java Applets
    Replies: 2
    Last Post: 03-09-2008, 03:06 PM
  4. File Upload
    By ShoeNinja in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-09-2007, 11:09 PM
  5. MultipartRequest File Upload parser 2.0B9
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-12-2007, 12:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts