> I am having this little problem. I am trying to upload a file to
> a servlet from a form on web-page. I am using MultipartRequest
> class from Mr Jason Hunter great class library.
:-)
> But I keep getting null into my sHTML = multi.getParameter(string)
<snip>
> <p align="center">Web page<INPUT TYPE=FILE NAME="HTML"></p>
<snip>
> String sHTML = multi.getParameter("HTML");
When retrieving the uploaded file, you don't retrieve it using
getParameter(). The file is saved to the hard drive. Take another
look at the class' Javadoc documentation and the description in the
book. Let me know if this still doesn't help.
-jh-
___________________________________________________________________________
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