Ok sorry...
i found the solution :
Enumeration params = multi.getParameterNames();
while (params.hasMoreElements())
{
String name = (String) params.nextElement();
String value = multi.getParameter(name);
out.println(name +" = " +value);
}
-----Original Message-----
From: BERWART Thierry [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 09, 2000 10:25 AM
To: [EMAIL PROTECTED]
Subject: Upload file ....
Hello,
I use the MultipartRequest class from the O'reilly book called "Servlet
programming" in a servlet to upload a file.
my html page is :
<FORM ACTION="http://127.0.0.1:8080/servlet/VersLavenirServlet"
ENCTYPE="multipart/form-data" METHOD="POST">
File name : <INPUT TYPE="FILE" NAME="file" SIZE=40 MAXLENGTH=40>
<BR><BR>
<INPUT TYPE="submit" VALUE="Launch !">
</FORM>
all works but i want to add some parameters like a number
<INPUT TYPE="TEXT" NAME="number" SIZE="1">
but i cannot retrieve this parameter because the
ENCTYPE="multipart/form-data"
If i remove the ENCTYPE,
The upload doesn't work more :(
Have you some ideas ???
Thanks!
Thierry
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html