• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem using upload code in JSF

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Last week I was working with JSF to build my application and I encountered the problem that in my page "upload.jsp" I was having a code of upload where I have mention <h:form enctype="multipart/form-data"> and in faces-config I set the navigation rule to move to the next page "uploadstatus.jsp".

When I run the application "upload.jsp" was every time going to itself when clicking on next.

Then I searched on net which said that JSF can'h handle multipart data and thats why it is throwing error and redirecting it to the page from which it has been called.

So I switched over to JSP to build the upload functionality to my application.


Can you suggest me what is the get around of this and whether JSF can handle multipart data.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not true. JSf can Handle Multipart Data. I have Done it myself. There Should be some other problem.
 
Raunak Agrawal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
May be you are right but I had problem only because of multipart data .
Because i removed multipart and the code was just working fine.
 
prashant sharma dutt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which tag you have used to upload the data.?(Input type file or what and how) Or Could you just paste the code which is creating the problem.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic