>>> Pol Millan <[EMAIL PROTECTED]> 9/24/99 1:35:44 PM >>>

>I'm just trying to send a file using a form, you know
><form enctype="multipart/form-data" method="post">
><input type=file ... name=myfile>
></form>

>But the thing is that when I do
>String myfile=req.getParameter("myfile");

>I only get a null value into myfile.

A file is submitted as a multipart request... the servlet API classes
only deal with normal requests not multipart ones.

If you check back on the list archives you will see how to solve
this.

Jason Hunter has written an excellent book which also covers this
point very well. It's called Java Servlets (I think) and is published
by O'Reilly. See http://www.oreilly.com for more information on this.


Nic Ferrier

___________________________________________________________________________
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

Reply via email to