The error reported is: 

org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error: Only a type can be imported. 
org.apache.commons.fileupload.DiskFileUpload resolves to a package

And the JSP page is: 

<%@ page import="org.apache.commons.fileupload.DiskFileUpload"%>
<%@ page import="org.apache.commons.fileupload.FileItem"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.io.File"%>


Look at the error, the part that says
"org.apache.commons.fileupload.DiskFileUpload resolves to a package" and
look at the first import statement, the one that imports
"org.apache.commons.fileupload.DiskFileUpload" and use just a smattering of
basic Java knowledge.  

Asked another way:  What do you imagine would happen if I tried to do the
following in a regular java program (or heck, a JSP):

import java.io;



This exception has nothing to do with using a single import statement vs.
multiple ones, or where you put your jar file or CLASSPATH. 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to