This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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.
 
GeeCON Prague 2014
 
subject: Problem using upload code in JSF