File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem using upload code in JSF

 
Raunak Agrawal
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
prashant sharma dutt
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic