上传文件+ajax进度条 FileItemFactory factory = new DiskFileItemFactory(); // 通过该工厂对象创建ServletFileUpload对象 ServletFileUpload upload = new ServletFileUpload(factory); List items = upload.parseRequest(request); for (Iterator i = items.iterator(); i.hasNext();)
文件的上传功能,只要自己构造一个servlet即可。 public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException { response.setContentType(CONTENT_TYPE); // Set the servlet's response type to XML. PrintWriter out = null; String upload