jsp - Integrating Seam app with flash file uploader -
I have a seam app and want to use multipuploader (). They give some processing script files (.asp, .aspx, .php), which should include a .jsp, define a flashover parameter with the relative path of the script. When I try to upload, I get the following errors:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred There is only one type imported the java file can be imported in: 6. Org.apache.commons.fileupload.FileItem fixes the package
An error on the line in the generated Java file: 7 Only one type of import can be done. Org.apache.commons.fileupload.servlet.ServletFileUpload fixes the package
An error in the Java file that is being generated: 8 Only one type can be imported. Org.apache.commons.fileupload.disk.DiskFileItemFactory fixes the package
I've included commons-fileupload-1.2.1.jar. Even if this works, I do not think it's the best way to do this, it's happening in a .jsp when the app does not use any .jsp ...
< P> any advice? Thanks!
First of all, it is actually considered bad behavior to write raw Java code in a JSP file Instead of the real Java class you actually used a servlet for it.
In the form of your problem, those collection errors are remembered in special squares, respectively. I think it works in your god environment, is it true? Where do you actually include the JAR file? It should be in the / WEB-INF / lib
of the webapp, to do all this work, nowhere else, like Appserver / lib
or worse JRE / lib
.
Comments
Post a Comment