wood burning stoves
The moose likes Struts and the fly likes Exception in populating FormFile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception in populating FormFile" Watch "Exception in populating FormFile" New topic

Exception in populating FormFile

Saptarshi Chakraborty

Joined: Jul 26, 2007
Posts: 23
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

Joined: Jun 07, 2007
Posts: 72

make sure that your html:action tag surrounding html:file has enctype attribute set to "multipart/form-data".

- Marimuthu Madasamy
I agree. Here's the link: http://aspose.com/file-tools
subject: Exception in populating FormFile
It's not a secret anymore!