Hi.

> I'm having problems with uploading files with mozilla 0.99 and struts. 
> Rather, the problem is when the file is optional and the user chooses 
> *not* to upload one.  A partial stack trace below:

I encountered the same problem.

Thanks to Rich's information, I managed to avoid the run-time error
with a dirty trick.

Try the following setter and getter for file type property in the 
ActionForm sub-class:


           FormFile theFile;

           Object getTheFile() {
                  return theFile;
           }
           setTheFile(Object theFile) {
                  if (theFile instanceof FormFile) {
                       this.theFile = (FormFile) theFile;
                  }
           }


Bye.

---
[EMAIL PROTECTED]

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

Reply via email to