Assigning an object(FormFile) to a dynamic form.

2002-11-18 Thread Reza Aliakbari
Hi,
 
I use dynamic forms in my projects; but this time I want to upload
A file and when I use   form-property name=myFile
type=org.apache.struts.upload.FormFile / 
An error occurs that says that cannot assign String to FormFile.
How can I use dynamic form with this kind of objects?
 
Thanks, reza.
 



Re: Assigning an object(FormFile) to a dynamic form.

2002-11-18 Thread Martin Cooper


On Mon, 18 Nov 2002, Reza Aliakbari wrote:

 Hi,

 I use dynamic forms in my projects; but this time I want to upload
 A file and when I use   form-property name=myFile
 type=org.apache.struts.upload.FormFile /
 An error occurs that says that cannot assign String to FormFile.
 How can I use dynamic form with this kind of objects?

FormFile is an interface, so it can't be instantiated. Try using DiskFile
instead - it implements FormFile.

--
Martin Cooper



 Thanks, reza.




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]