日期:2014-05-16  浏览次数:20327 次

jsp文件上传

支持多文件上传?
所需jar包?
1. commons-FileUpload 1.2 包?
2. commons-IO 1.3.1 包?
3. Commons-BeanUtils 1.8 包?

-----------------------------------upload.jsp-----------------------------------?

Java代码?
  1. <html>????
  2. <head>????
  3. <title>Jsp+Servlet?upload?file</title>????
  4. </head>????
  5. <body>????
  6. ??<form?action="uploadServlet"?method="POST"?enctype="multipart/form-data">????
  7. ????<input?type?="file"?name="file1"/><br/>????