//System.out.println("我进来了.....");
String pathname=request.getParameter("filePath");
String filename=request.getParameter("fileName");
//System.out.println(pathname+"我进来了....."+filename+"====");
try {
ftpClient = new FTPClient();
ftpClient.setControlEncoding("utf-8");
try {
ftpClient.connect(hostname, port); //连接ftp服务器
ftpClient.login(username, password); //登录ftp服务器
int replyCode = ftpClient.getReplyCode(); //是否成功登录服务器
if (!FTPReply.isPositiveCompletion(replyCode)) {
ftpClient.disconnect();
}
ftpClient.enterLocalPassiveMode();
} catch (MalformedURLException e) {
&n


发布评论