admin 管理员组

文章数量: 1184232

//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

本文标签: 编程 调用浏览 服务器