The list & lt; FileItem & gt; returned by parseRequest (request) in ServletFileUpload is null, servletrequest

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.