• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form bean is not getting populated while using enctype="multipart/form-data"

 
Sam Mites
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;
the action form fields are not getting populated while using <html:form enctype="multipart/form-data"> whils uploading files. What may be the probable causes for the faliure.

Thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest taking a close look at the upload sample that comes with the struts download and comparing it to your code to look for what might be going wrong. Make sure that in your form bean, you have defined the upload file as type org.apache.struts.upload.FormFile.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic