aspose file tools
The moose likes Other Open Source Projects and the fly likes commons fileupload with JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "commons fileupload with JSF" Watch "commons fileupload with JSF" New topic
Author

commons fileupload with JSF

Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
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


SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
 
IntelliJ Java IDE
 
subject: commons fileupload with JSF
 
Threads others viewed
Problem with org.apache.commons.fileupload
file upload
error during uploading files - no parametres in request
File Upload
problem with org.apache.commons.fileupload
IntelliJ Java IDE