File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception in populating FormFile

 
Saptarshi Chakraborty
Greenhorn
Posts: 23
  • 0
  • 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
  • 0
  • 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