A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
problem with file upload in a JSF form
Joined: Nov 17, 2002
Aug 06, 2004 02:03:00
form i have this code fragment.
<input name="importFile" type="file" size="10">
To upload the selected file I use commons-fileupload-1.0.jar from
's 5.0 server dir.
I get this exception:
the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/x-www-form-urlencoded
JSF forms dont allow the attribute encType to be set.
I tried this and the hole aplication dont work.
Does any one know a solution for this problem?
Thanks in advance.
Joined: Jan 06, 2004
Aug 06, 2004 06:00:00
I recommend you look into using MyFaces (
). MyFaces has a component for file uploads.
JSF Resources and Console GUI tool
I agree. Here's the link:
subject: problem with file upload in a JSF form
Struts upload file error
problem with enctype="multipart/form-data"
File Upload JSP
About form submission
Struts upload not working
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014