Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts upload file error

 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator








Error org.apache.commons.beanutils.ConversionException
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is with your JSP. When you upload a file, you must specify enctype="multipart/form-data" in your <html:form> tag.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a pretty good example: http://www.roseindia.net/struts/strutsfileupload.shtml

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic