jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Struts upload file  error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts upload file  error" Watch "Struts upload file  error" New topic
Author

Struts upload file error

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124








Error org.apache.commons.beanutils.ConversionException
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The problem is with your JSP. When you upload a file, you must specify enctype="multipart/form-data" in your <html:form> tag.


Merrill
Consultant, Sima Solutions
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Here is a pretty good example: http://www.roseindia.net/struts/strutsfileupload.shtml

- Brent
 
wood burning stoves
 
subject: Struts upload file error
 
Similar Threads
action doesnot excute?
Using FormFile in struts
Displaying file content in a jsp page
I am getting error when starting Tomcat .How can I rectify it?
Struts2: file upload not working