request.getParameter(String name) do not be used in one form
request.getParameter(String name) do not be used in one formwith ENCTYPE="multipart/form-data",
this may be a bug?
please look the followed file
html file
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Upload</title>
</head>
<body>
Uplo ad Example
<form method="POST" action="upload.jsp" ENCTYPE="multipart/form-data">
<p>
<input type="text" name="name">
<input type="file" name="f1" size="20">
<input type="file" name="f2" size="20">
<input type="submit" value="submit" name="B1">
<input type="reset" value="reset" name="B2">
</p>
</form>
</body>
</html>
Deal JSP File
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>test</title></head><body>
<h2>Sample Page</h2>
<%@ page import="java.io.*" %>
<%=request.getParameter("name")%>
</body>
</html>
the Result will be NULL
If you take out " ENCTYPE='multipart/form-data'" in the form file.you will be upload File ,because you do find file content in the request.

