my dog learned polymorphism*
The moose likes Other Open Source Projects and the fly likes Problem with MultipartrequestWrapper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem with MultipartrequestWrapper" Watch "Problem with MultipartrequestWrapper" New topic
Author

Problem with MultipartrequestWrapper

tat jugran
Greenhorn

Joined: Mar 26, 2010
Posts: 9
Hi,

I have got a problem..

Some one did crap code.. they have parameter in HttpServletRequest
.

Those parameters name contains space "white character" at the end.. So much code is done with the same..

In the same page now file upload is done. so the request coming in is now MultipartRequest.

When i am trying to upload file, these parameters with white space at the end are not containing any white space at the end.. I guess it is trimmed in the implementation. When i am not uploading file it is coming with white space..

Now you will say that i can trim the same and use, but so much code is done with the same.. and some values are appended after that space..

So some of the parameters are becoming like "variable_ 1231" existing code can not be changed..

Any one faced the same problem.. Is it MultipartRequestWrapper's problem .

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Which MultipartRequestWrapper are you talking about? There are several. Regardless, it's not part of the servlet spec, so belongs in a different forum.
tat jugran
Greenhorn

Joined: Mar 26, 2010
Posts: 9
Its about jakartamultipart request.. where i should post it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with MultipartrequestWrapper
 
Similar Threads
File upload
How to retain a selected file path in a input type="file" in html
Trying to emulate HTTP file upload with an applet
Simple question
Issue with MultipartFormDataRequest