protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
String temp_p = request.getParameter("downloadFileName");
byte[] temp_t = temp_p.getBytes("UTF-8");
String fileName = new String(temp_t, "UTF-8");
SmartUpload mySmartUpload = new SmartUpload();
try {
// 初始化
mySmartUpload.initialize(config, request, response);
// 设置不自动打开
mySmartUpload.setContentDisposition(null);
mySmartUpload.downloadFile("/upload/" + fileName);
} catch (Exception e) {
e.printStackTrace();
}
}