Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception in populating FormFile  RSS feed

 
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".

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!