java code for file uploading


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: java code for file uploading

  1. #1
    Join Date
    Jun 2005
    Posts
    4

    java code for file uploading

    hello,
    i want to upload a file(basically a image file of any type) from a jsp page which may reside anywhere(client or server, etc...). then that file will be saved in a specified directory(in server) through the lan. can anybody help me by sending me the java file. i want to use that as class file or a bean in my jsp. then the file name(in server) will be passed as a parameter.

  2. #2
    Join Date
    Dec 2003
    Location
    tx/us
    Posts
    131
    What you want to do is a form based file upload. My prefered way to do that is with the Struts support for that functionality. You can also find the O'reilly multipart handler from Hunter's Java Servlets book and use that. (The license for the latter is that you have to purchase a copy of the book; the former is totally free but you have to build your app using the Struts framework, a good idea in the first place.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center