File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Problem with MultipartrequestWrapper

tat jugran

Joined: Mar 26, 2010
Posts: 9

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

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

Joined: Mar 26, 2010
Posts: 9
Its about jakartamultipart request.. where i should post it?
I agree. Here's the link:
subject: Problem with MultipartrequestWrapper
It's not a secret anymore!