Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: jsp page with enctype="MULTIPART/FORM-DATA"

Kilic, Hakan

2003-12-10

Replies:

Hi FTP (nice name),

multipart/form-data doesn't send the value as query string parameters (not a
normal post such as application/url-encoded). You can't just do a
request.getParameter("someparameter") for a multipart/form-data POST.

Try checking out various file upload libraries (oreilly.com has one, as well
as file-upload). This isn't Tomcat specific.

-Hakan Kilic

-----Original Message-----
From: FTP Admin [mailto:ftp@(protected)]
Sent: Wednesday, December 10, 2003 4:29 PM
To: Tomcat Users List
Subject: jsp page with enctype="MULTIPART/FORM-DATA"


Hi,

Hi there,

when I add the following: enctype="MULTIPART/FORM-DATA"

in a FORM element in a jsp page, then the values of the FORM parameters
doesn't get propagated to the action servelet!!!! The servlet receives
nulls only!!! If i skip the enctype="MULTIPART/FORM-DATA" in the FORM,
everything (the parameters do retain their values!) works fine! Any
explanation???

I need this modification in order to include file upload capabilities
into my servlet!

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.