A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
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
problem with enctype="multipart/form-data"
Struts upload not working
File Upload JSP
Struts upload file error
About form submission
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015