Hi All,
I can easily do an upload, using jsp and the struts uploadAction, but
using velocity I obtain the folowing errors in the firefox and mozilla
browsers:
javax.servlet.ServletException: BeanUtils.populate
and
java.lang.IllegalArgumentException: argument type mismatch
However, I don't have any error using Konqueror or Safari.
Here is my FileUploadForm.java
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
public class FileUploadForm extends ActionForm {
protected FormFile file;
protected String type;
public String getType() { return type; }
public void setType(String s){ type =3D s; }
public FormFile getFile() { return file; }
public void setFile(FormFile file) { this.file =3D file; }
}
If I change the FormFile variable into a String variable, then firefox
and mozilla accept the FormBean but with Konqueror and Safari the same
error happen.
Does the struts markup <html:file /> function differently than the
standard <input type=3D"file"> or does anyone have an idea how to use a
struts download Action with velocity which work with all browsers.
Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]