日期:2014-05-17 浏览次数:20624 次
<form id="orderForm" encType="multipart/form-data" action="create.ered" method="post">
<td>
<input type="text" class="text deliveryCorp" name="shippingFaces[0].deliveryCorp" />
</td>
<td>
<input type="text" class="text shippingMethod" name="shippingFaces[0].shippingMethod" />
</td>
<td>
<input type="file" class="file" name="shippingFaces[0].file" />
</td>
</form>
for(ShippingFace shippingFace : shippingFaces) {
System.out.println(shippingFace.getShippingMethod()); //有值
System.out.println(shippingFace.getFile()); // 为null
this.shippingFaceService.uploadFile(shippingFace);
}
/** 配送方式 */
private String shippingMethod;
/** 物流公司 */
private String deliveryCorp;
/** 文件 */
private MultipartFile file;