wood burning stoves 2.0*
The moose likes JSP and the fly likes ftp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "ftp" Watch "ftp" New topic
Author

ftp

yaser
Greenhorn

Joined: Nov 24, 2001
Posts: 2
How can I upload file from my local System to a remote server
through jsp and is there is any packages that I can use to simplify the job?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Do a search on "upload" on JavaRanch and you will find several threads on this already. The concensus from most people (including myself) is to use the com.oreilly.servlet... packages found at Servlets.com and described in Jason Hunter's book.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

"yaser"
your name doesn't agree with javaranch guidelines.
Please take a moment and re-register after reviewing
the guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
khurram mirza
Greenhorn

Joined: Jun 10, 2001
Posts: 25
there is no package like ftp or that can upload file.but u can achieve your objective using scoket programming for uploading files and trusted applet that can read files from client.
khurram mirza
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Khurram,
Your applet solution will also work, but your post isn't quite true. There is a standard HTML control for multipart file upload that you can use to upload files through HTTP. The com.oreilly.servlet classes mentioned above show how to correctly parse the output of the HTTP stream and rejoin it into a file -- you can use them to upload files of any type.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
wood burning stoves
 
subject: ftp
 
Similar Threads
Idle's mind is a devils workshop
Testing
May 31, 2001 - test Job Offer $xxx,xxx Colorado Springs
No Banner for JSF book promo?
Brain Teasers