File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Multipart request problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Multipart request problem" Watch "Multipart request problem" New topic

Multipart request problem

vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 219
Hi friends,

I am working on jsf 1.2 , i am having file upload problem.I am posting my code. please check where the mistake has gone.

i used myfaces-extensions-1.0.9.jar for file upload. and other supporting jar files are commons-fileupload-1.2.jar,commons-io-1.4.jar,commons-el.jar,tomahawk-1.1.10.jar.

This is my jsp page

This is my backing bean

my web.xml file

i am getting file as null.

After digging into ExtensionsFilter.class i found this snippet of code where my multipart request is processed and kept in request object properly..

when debugging, in extendedRequest i got FileItem and FileUpload as null.

so my image iam getting as null and iam getting NullPointerException..

Please anybody help.

Vipul Kumar.

Vipul Kumar
subject: Multipart request problem
It's not a secret anymore!