• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Multipart request problem

 
Ranch Hand
Posts: 253
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic