This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Multipart request problem" Watch "Multipart request problem" New topic
Author

Multipart request problem

vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 218
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.

Thanks
Vipul Kumar.


Thanks
Vipul Kumar
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multipart request problem