Hi Patrick,
This one is wrong : "
org/apache/commons/io/output/DeferredFileOutputStream
" because DeferredFileOutputStream is placed here: "
org/apache/commons/fileupload/DeferredFileOutputStream Hum that seems like the wrong package altogether you can try 2 things one is get the commons IO library and put it in the lib folder but do not do an import as you did down here, as you will need to specify full path names to use 2 classes with the same name, it seems that fileupload is actually using commons-io as I did not see an explicit call in your code for the file Tomcat is complaining about. So get the commons io remove the imports and try it again. If it does not work get fileupload 1.0 as opposed to 1.1 and try with that as the older library may not use that call and it may work.
".
But why does 'import="org.apache.commons.fileupload.* still produces mistake? I can not understand.
Please tell me where is the mistake.
Thank you very much ==== //my new 'cgiupload.jsp'. <%@ page import="java.util.List, java.io.File, java.util.Iterator,
org.apache.commons.fileupload.DeferredFileOutputStream,
org.apache.commons.fileupload.DiskFileUpload, org.apache.commons.fileupload.FileUploadBase, org.apache.commons.fileupload.FileUpload, org.apache.commons.fileupload.FileItem" %>
Remove the explicit import for DeferredFileOutputStream.
Generated servlet error: Only a type can be imported.
org.apache.commons.fileupload.DeferredFileOutputStream
resolves to a package
This error means that Tomcat thinks this is a package not a class check you libs. regards, george __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com