Hi, You cant use request.getParameter("yourVarName")with a multipart-form.
You need to use the MultipartRequest object to retrieve your values i.e. MultipartRequest multi = new MultipartRequest(request, tempDir, 2000 * 1024); then you should be able to retrieve your parameter with multi.getParameter("yourVarName") Regards Peter -----Original Message----- From: Paul McCall [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 7:32 PM To: [EMAIL PROTECTED] Subject: Problem with ENCTYPE="multipart/form-data" According to what I read and assumed, you should be able to send form data along with an uploaded file using ENCTYPE=multipart/form-data... but in practice I was not able to get this working. My file would come across fine, but my form data would not be there. If I changed the form enctype back to normal(just took it out), the form data would appear just fine(but of course the file didn't come through). Am I misunderstanding how ENCTYPE=multipart/form-data is used? I was able to get around this problem by using some javascript to append the variable to the URL when the file is posted. Thanks. Paul M. ___________________________________________________________________________ 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