Article:
 |
|
Using the Jakarta Commons, Part 1
|
| Subject: |
|
Help! I can't get it to work! |
| Date: |
|
2006-06-21 10:22:34 |
| From: |
|
consultingbyrich
|
|
|
|
Hello,
I can't get past the upload.parseRequest(request). I even replaced the original deprecated code with the code from this site but it bombs on the parseRequest (line 32; see stack below).
My code is:
(23) DiskFileItemFactory factory = new DiskFileItemFactory();
(27) ServletFileUpload upload = new ServletFileUpload(factory);
(32) List items = upload.parseRequest(request);
I really need to get this working quickly....
Thank you for your help,
Rich
java.lang.NoClassDefFoundError: org/apache/commons/io/FileCleaner at org.apache.commons.fileupload.disk.DiskFileItem.getTempFile(DiskFileItem.java:590) at org.apache.commons.fileupload.disk.DiskFileItem.getOutputStream(DiskFileItem.java:530) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:369) at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116) at _fileuploaddemo._jspService(fileuploaddemo.jsp:32) [SRC:/fileuploaddemo.jsp]
|
Showing messages 1 through 1 of 1.
-
Help! I can't get it to work!
2006-06-21 12:24:57
consultingbyrich
[View]
Now, it works just fine. I couldn't get the "myimage" control to work -- but the "myfile" control uploads images so all's well.
Thanks!
Rich