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

The following FileUploadForm works well with Konqueror and Safari but
doesn't with FireFox Mozilla and Explorer

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; }
 }

This one  works well with FireFox Mozilla and Explorer but doesn't
with Konqueror and Safari

public class FileUploadForm extends ActionForm {
    protected String file;
    protected String type;

    public String getType() { return type; }
    public void setType(String s){ type =3D s; }

    public String getFile() { return file; }
    public void setFile(String file) { this.file =3D file; }
 }

In both case my Html Form is :
<form action="$link.setAction("fileUpload")" enctype="multipart/form-data">
<p>$text.get("blast.upload")<br>
<input type="hidden" value="$interfaceJob.type" name="type">
<input type="file" name="file"> <input type="submit"
value="$text.get("button.ok")"></p>
</form>

Does the struts markup <html:file /> function differently than the
standard <input type="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]

Reply via email to