This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts upload file  error" Watch "Struts upload file  error" New topic

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.

Consultant, Sima Solutions
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Here is a pretty good example:

- Brent
I agree. Here's the link:
subject: Struts upload file error
jQuery in Action, 3rd edition