Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception in populating FormFile

 
Saptarshi Chakraborty
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
In a jsp file I have used <html:file > property it looks something like this
<html:file property="attachments"/>
and in the form bean it has getters and setters like

public FormFile getAttachments() {
return attachments;
}
public void setAttachments(FormFile attachments) {

this.attachments = attachments;
}


Can any body come up with a solution to this.
 
Marimuthu Madasamy
Ranch Hand
Posts: 72
Java Monad Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make sure that your html:action tag surrounding html:file has enctype attribute set to "multipart/form-data".

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic