提交的表单中有如下字段
<html:text property="taskCode"/><br>
<html:text property="failureName"/><br>
<html:text property="happenTime"/><br>
<html:text property="principal"/><br>
<html:text property="system"/><br>
<html:text property="subsystem"/><br>
<html:textarea property="enviroment"></html:textarea><br>
<html:textarea property="phenomeneonAndEffect"></html:textarea><br>
<html:textarea property="countMeasureAndEffect"></html:textarea><br>
<html:file property="image1"/><br>
<html:file property="image2"/><br>
<html:file property="image3"/><br>
<html:file property="accessory1"/><br>
<html:file property="accessory2"/><br>
<html:file property="accessory3"/><br>ActionForm中对应如下属性:
private String taskCode;
private String failureName;
private String happenTime;
private String principal;
private String system;
private String subsystem;
private String phenomeneonAndEffect;
private String countMeasureAndEffect;
private String enviroment;
private FormFile image1;
private FormFile image2;
private FormFile image3;
private FormFile accessory1;
private FormFile accessory2;
private FormFile accessory3;怪就怪在使用jbx自带的浏览器时并没有如说的:
java.lang.IllegalArgumentException: argument type mismatch
<html:text property="taskCode"/><br>
<html:text property="failureName"/><br>
<html:text property="happenTime"/><br>
<html:text property="principal"/><br>
<html:text property="system"/><br>
<html:text property="subsystem"/><br>
<html:textarea property="enviroment"></html:textarea><br>
<html:textarea property="phenomeneonAndEffect"></html:textarea><br>
<html:textarea property="countMeasureAndEffect"></html:textarea><br>
<html:file property="image1"/><br>
<html:file property="image2"/><br>
<html:file property="image3"/><br>
<html:file property="accessory1"/><br>
<html:file property="accessory2"/><br>
<html:file property="accessory3"/><br>ActionForm中对应如下属性:
private String taskCode;
private String failureName;
private String happenTime;
private String principal;
private String system;
private String subsystem;
private String phenomeneonAndEffect;
private String countMeasureAndEffect;
private String enviroment;
private FormFile image1;
private FormFile image2;
private FormFile image3;
private FormFile accessory1;
private FormFile accessory2;
private FormFile accessory3;怪就怪在使用jbx自带的浏览器时并没有如说的:
java.lang.IllegalArgumentException: argument type mismatch
<html:form action="upload.do?queryParam=Successful" enctype="multipart/form-data">
我没有写这个:enctype="multipart/form-data“
在jbx中没有报错,这应该是jbx的的一个故障了。为了结贴,分给楼上的了,绝非倒分,请管理员不要封我!