File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Problem using upload code in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem using upload code in JSF" Watch "Problem using upload code in JSF" New topic
Author

Problem using upload code in JSF

Raunak Agrawal
Greenhorn

Joined: Dec 12, 2009
Posts: 2
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

Joined: Mar 31, 2009
Posts: 3
This is not true. JSf can Handle Multipart Data. I have Done it myself. There Should be some other problem.
Raunak Agrawal
Greenhorn

Joined: Dec 12, 2009
Posts: 2
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

Joined: Mar 31, 2009
Posts: 3
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem using upload code in JSF
 
Similar Threads
Unable to get connection
File upload doesn't work when additional form elements introduced
Uploading images with jsp
upload file question
Struts - Problem in Uploading enctype=�multipart/form-data�