<form id="form1" name="form1" method="post"
action="ceshi.jsp?ac=doupdate&&saveaddr=<%=tosave%>"enctype="multipart/form-data"
style="margin:0px"onsubmit="return check()">
<table width="523" height="184" border="0" align="center">
<tr>
<td colspan="2" align="center">
添加新商品
</td>
</tr>
<tr>
<td width="206" align="right">
商品名称:
</td>
<td width="307">
<label>
<input type="text" name="txtgname" id="txtgname" />
</label>
</td>
</tr>
<tr>
<td align="right">
商品价格:
</td>
<td>
<label>
<input type="text" name="txtgprice" id="txtgprice" />
</label>
</td>
</tr>
<tr>
<td height="54" align="right">
商品图片:
</td>
<td>
<input name="myfile" type="file" id="myfile" size="26"
style="font-family:'宋体';font-size:12"
onchange="parent.seturl1(this.value)">
</td>
</tr>
<tr>
<td height="54" align="right">
商品简介:
</td>
<td>
<label>
<textarea name="txtgil" cols="22" rows="5" id="txtgil"></textarea>
</label>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<label>
<input type="submit" name="button" id="button" value="提交" />
</label>
</td>
</tr>
</table>
</form>
这是我FORM提交的表单,我在另一个页面接的,
SmartUpload su = new SmartUpload();
String gname = su.getRequest().getParameter("txtgname");
String gprice = su.getRequest().getParameter("txtgprice");
String im = su.getRequest().getParameter("myfile");
String gil = su.getRequest().getParameter("txtgil");
System.out.println(gname);
System.out.println(gprice);
System.out.println(im);
System.out.println(gil);
结果为什么我打印的都是NULL啊,