I need to copy the files from the ftp server to my PC, but due to the speed of transfer,the download speed rates to 3 KB/ps, but what i think is my Web server is underutilized,so i am thinking of deploying a JSP script on the WEB server to copy the files from the FTP server to the WEB server,then afterwards i can copy from Web Server to my pc,although i think i will be able to deploy a JSP script to copy, this is what i intend to do
On the Web Server, i intend to deploy a JSP script with a text file containing the ftp links, as soon as i invoke the JSP from a client the downloading process will begin,Now Here comes the big problem:- ,i need to close the client, and as soon as i close the client, the request,response,and the thread will be destroyed, and i need the proccess to continue,is there any way to keep the downloading continue and closing the client. [ August 03, 2006: Message edited by: anand phulwani ]
Thanks and Regards, Anand
SCJP 5.0 310-055 73%, SCWCD 1.4 310-081 78%, IBM DB2 9 Fundamentals 000-730 62%
Are you talking about a new Thread you started that gets the files from the ftp server to the web server? I would be surprised if that got stopped/deleted just because the browser that requested the page was closed. How would the server even know that the browser went away?
Or are you talking about the download of the files to your PC? That works through the browser, so it would need to stay open. [ August 03, 2006: Message edited by: Ulf Dittmer ]
The Basic Goal is to Download the files from the FTP to my PC,but i want to do that via my WEBSERVER,that means i want to first download files from the FTP to the WEBSERVER and then from WEBSERVER to MY PC
the problem lies in the first step that is FTP to the WEBSERVER , what i think is when the client will request for the page,the downloading will begin,but as soon as the user moves away,wont the thread would be dumped,but you are also correct like how the WEBSERVER knows who is who.
I think i will try this today,and hope that i succeed.
It is nice to have people who have registered 4660 and 7143 post on such a beautiful website,thinking over my issue.
Ok do you mean i should invoke another thread from the Servlet code which does the copying process,ya i think thats a nice idea and can be done.
I hope you have thought about the potential security/abuse possibilities - what happens if Google robots keep hitting your page?
I am really sorry but i am not familiar to these issues,if you would describe about them,it would be lot nicer.
Joined: Mar 22, 2005
William talks about this: Would the JSP page be a public page? If so, there is a possibility that Google or some bot (or a malicious user) finds it, and keeps accessing it - in which case they will get your files. So make sure your page is at least password-protected.
Joined: Sep 10, 2005
I think i have some big problem,the server does not support JSP,it support CGI-PERL,PHP.i know after this i should not speak anything in this forum, but can anyone advice how to make things go now. [ August 03, 2006: Message edited by: anand phulwani ]
Joined: Mar 22, 2005
I don't see why you shouldn't be able to do this in Perl or PHP just as well as in Java.