I use org.apache.commons.fileUpload.FileItemother related classes to upload files from the local machine to the server (although both machines are the same for current testing).
I have a file .jspas a user interface and a servlet to handle loading. Now that the request reaches approval
List items = upload.parseRequest(request);
it returns an empty list. I have searched for this thing in many places. Most of them indicate the presence of symptoms that parserequest()returns empty. But it was not possible to find the exact solution to avoid this. In one place, I could see that Tomcat can have filters that can be analyzed. The request and this is why, when called above, parseRequest returns an empty list. But there is no specification how to avoid this.
Is it because of the web server used (which is JBOss)? or does it have anything to do with java and commons.jar versions?
I use
- jre 1.6
- JBoss-4.0.4.CR2
- Common-FileUpload-1.2.2.jar
- Eclipse (for creating a dynamic web project)
Your help will be very helpful.
source
share