• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

commons fileupload with JSF

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

I am trying to upload file using JSF with commons-fileupload.jar. it works fine on a servlet but the same line of code is not working on JSF. I tried to debug to see where it is going wrong

"FileUploadBase.java" of commons-logging has a boolean check
boolean nextPart = multi.skipPreamble();
where multi is an instance of "MultipartStream.java"
this boolean check is returning false for JSF and its returning true for servlets
.
one more, DiskFileUpload.isMultipartContent(request) is returning true for JSF

Could anyone tell me what is going wrong ? is it possible to make use of commons-fileupload in JSF ? i have found a post on Sun Java forum making use of Filter but i prefer commons jar. Any help on this is highly appretiated !!

Thanks,
Rajeev
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic