File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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:
subject: Exception in populating FormFile
It's not a secret anymore!