• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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 !!

Willie Smits can speak 40 languages. This tiny ad can speak only one:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic