tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Cruz" <>
Subject RE: multipart form data
Date Mon, 22 Oct 2001 21:56:07 GMT
You need to use the new BinaryRequest class that he creates to get all your
form data, including strings.


-----Original Message-----
From: Henry []
Sent: Monday, October 22, 2001 4:47 PM
Subject: multipart form data

In a FORM data that uses POST method, I need to upload a file
as well as other string data.

according to oreily, forms should be ENCTYPE="multipart/form-data",
however, when this thing is added, all the inputs in the form
can not be reached by

how can i fix it?

below is the html:

<FORM ENCTYPE="multipart/form-data"
 method="POST" action="manager">
<INPUT TYPE="text" NAME="sid">

below is the servlet:
 public void service(HttpServletRequest request,HttpServletResponse
	throws ServletException, IOException
	Enumeration paramNames = request.getParameterNames();
	while(paramNames.hasMoreElements()) {
	    String paramName = (String)paramNames.nextElement();

View raw message