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

    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
    Posts
    164
    Rep Power
    7

    Default

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

    Servlets.com | 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, 01:27 PM
  3. Applet File Upload
    By genette in forum Java Applets
    Replies: 2
    Last Post: 03-09-2008, 02:06 PM
  4. File Upload
    By ShoeNinja in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-09-2007, 10: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
  •