views:

22

answers:

0

i'm using the commons.fileupload .. when i try to parse the request i get no items from it which later leads to a null pointer exception... as far as i understand, this happens because

"Why is parseRequest() returning no items? This most commonly happens when the request has already been parsed, or processed in some other way. Since the input stream has aleady been consumed by that earlier process, it is no longer available for parsing by Commons FileUpload."

How do i make sure i have another copy so that i can send that for parsing..? its a problem since i can't instantiate httpservletrequest and store a copy of the request..