Posted By:
chenna_dulla
Posted On:
Monday, May 20, 2002 07:50 AM
Hi, I download jspsmartupload package from jspsmart and Here is the code i am using to download a file from server to local machine......... <%@ page language="java" import="com.jspsmart.upload.*"%> <% // Initialization mySmartUpload.initialize(pageContext); try{ String files[]={"partner.jsp","index.jsp","count.jsp"}; for(int i=0;i { System.out.println("files==="+files[i]); mySmartUpload.downloadFile("/usr/local/tomcat/webapps/development/"+files[i],"null",files[i]);
More>>
Hi,
I download jspsmartupload package from jspsmart and
Here is the code i am using to download a file from server to local machine.........
<%@ page language="java" import="com.jspsmart.upload.*"%>
<%
// Initialization
mySmartUpload.initialize(pageContext);
try{
String files[]={"partner.jsp","index.jsp","count.jsp"};
for(int i=0;i
{
System.out.println("files==="+files[i]);
mySmartUpload.downloadFile("/usr/local/tomcat/webapps/development/"+files[i],"null",files[i]);
System.out.println("afterfiles==="+files[i]);
}
}
catch(Exception e){System.out.println(e.getLocalizedMessage());}
%>
Now my question is how to download multiple files from server ........
This code is downloading only one file .........
But i put the files in the array (the files are available at server under the path usr/local/tomcat/webapps/development/ .............
How to download list files in a single request .......
Please can any one help me ...........
I will appriciate for your help...........
When i saw logs the for loop is executing perfectly but only one file is downloading..........
How can i download the files i specified in the array .....
Thanks.