• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Apache file upload parsing problem

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am working on filter to protect the webapplication. My filter intercepts the call does the authenticationa and autorization with another application by redirecting. Before redirecting it put the request parameter in the DB and finally after successful authorization recreates the original request using the parameters from DB and replays the request.

My problem is with multipart data. To solve this i have craeted a request wrapper to store the input stream in to byte array and keep the byte array in session and do other redirection. But finally i take the byte array from session and pass it to the request wrapper and pass the request wrapper to filter chain for the servlet to get the data. But in servlet if i use this request wrapper with apache file upload api, i dont get any form fields or files though the input stream has the file and form field in the content.

I tried to put the whole request wrapper in session and used the session request wrapper to pass in the filter chain finally. But the same problem. Does any one have any clue what is worng here.

Thanks in advance,
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell exactly what you want. why you are doing so much things...
My cellmate was this tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic