用post提交表单不能取得值?
我在eclipse 中写了两个测试页面,提交上传文件.用的是post方法,但表单里面的数据不能获得,是怎么回事啊?
<HTML>
<head>
<title>post</title>
</head>
<BODY>
<HR>
<p align="center">
<form METHOD="post" ACTION="/E_commerce/admin/mainpage/uploadAdLogo.jsp" NAME="PW" ENCTYPE="multipart/form-data">
<table CELLSPACING="0" CELLPADDING="3" BORDER="1" WIDTH="474">
<tr>
<td>src: </td>
<td><input TYPE="file" name="FILE1"></td>
</tr>
<tr>
<td width="150" >type: </td>
<td width="324"><input TYPE="radio" name="type" value="image" checked>image
<input TYPE="radio" name="type" value="embed">others</td>
</tr>
<tr>
<td width="150">property: </td>
<td width="324"><input TYPE="radio" name="property" value="logo">logo
<input TYPE="radio" name="property" value="ad" checked>advertisment</td>
</tr>
<tr>
<td colspan="2" width="474" align="center"><input TYPE="Submit" value="ok"></td>
</tr>
</table>
</form>
</BODY>
</HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
out.println(request.getParameter("type"));
%>
</body>
[[it] 本帖最后由 zxyliwei 于 2008-3-2 14:12 编辑 [/it]]