The list <FileItem> returned by parseRequest (request) in ServletFileUpload is empty. servletrequest
The problem is that both the common-fileupload and the common-io.jar are on. At first, I thought that the classes used to write code were not used in the I/O package, so I didn't carry the I/O package. Later I found out that this was the problem!
I think the upload. parseRequest (request) method uses the io package, but it is encapsulated and we cannot see it.
List <?> Items = ServletFileUploadparseRequest (request); used ssh framework, request is not empty
First, let's see what object your request is.
List of struts2 and swfupload upload problems <?> Items = uploadparseRequest (request); null
In struts2, you do not need to send a request. You can use the file address parameter as a parameter of the ACTION and then get set. In Baidu, there should be a lot