This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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