Hi,
I have used getParameter method with multipart/form-data. It works
perfectly fine.
MultipartRequest multi = new MultipartRequest(req, tmp_dir,5*1024*1024);
String to_dir = multi.getParameter("directory");
Is this how you did ?
cheers
suresh.
____________________________________________________
Nobody can be exactly like me.
Even I have trouble doing it.
____________________________________________________
On Fri, 28 Sep 2001, RBonazzo wrote:
> Hi,
> If you made a search on google search "oreilly multipart" you can find
> many links taht can help you
> Regards
> Rinaldo
> [EMAIL PROTECTED]
>
> -----Messaggio originale-----
> Da: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]] Per conto di P.
> Christov
> Inviato: venerd� 28 settembre 2001 16.05
> A: [EMAIL PROTECTED]
> Oggetto: both "multipart/form-data" and getParameterNames()
>
>
> Hello,
>
> I try in one HttpServletRequest Form-Data-Elements and uploaded File to
> process.
>
> (<input type="text" name="theFile1"><input type="file" name="theFile">)
>
> I must use the getParameterNames()- and getParameter()- Methods .
> (Enumeration params = request.getParameterNames();)
>
> But getParameterNames()- and getParameter()- Methods are not available
> when I use "multipart/form-data"- encoding in an http- Request with a
> POST-Method:
>
> <FORM NAME="theForm" ENCTYPE="multipart/form-data"
> ACTION="http://localhost:8080/examples/servlet/ParserTestServlet1"
> METHOD="POST" >
>
> Whether someone knows a Solution for this problem ?
>
> Thank you in advance!
>
> ________________________________________________________________________
> ___
> 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
>
___________________________________________________________________________
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