This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes How to upload a file using FTP through HttpServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "How to upload a file using FTP through HttpServlet" Watch "How to upload a file using FTP through HttpServlet" New topic
Author

How to upload a file using FTP through HttpServlet

Alice Huber
Greenhorn

Joined: May 09, 2010
Posts: 9
Hi,

I have captured a file name ( say abc.txt ) from the user using HTML form .
The same file resides on Unix server . Now I would like to have this entire file available with me in my Servlet on my local Windows machine so that I can scan through it and process it as per my business logic and then display the result to the end user on the browser.


Kindly let me know the code snippet which I can put into my HttpServlet.

Thanks.


Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

I would suggest you to take a look at Apache Common Net library.


PM Me If You Want to get Urgent Help on Java Programming
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to upload a file using FTP through HttpServlet