Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ftp

 
yaser
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"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
 
khurram mirza
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic