dcsimg
file upload in struts
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ravi_sambandam
Posted On:   Thursday, January 2, 2003 09:57 PM

can any one tell me how 2 define getter setter method for a form elemnet of type file.
i have set the encrypt type="multipart/form-data" in the html:form tag.

ravi

Re: file upload in struts

Posted By:   Kenneth_Tennek  
Posted On:   Thursday, January 2, 2003 10:46 PM

The property needs to be of type org.apache.struts.upload.FormFile:

public void setFile(org.apache.struts.upload.FormFile file);

public org.apache.struts.upload.FormFile getFile();
About | Sitemap | Contact