Java Mailing List Archive

http://www.junlu.com/

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

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

Ben Souther

2003-12-10

Replies:

If that's the one that you're going to use, yes.
Read the documentation for that project.


On Wednesday 10 December 2003 05:26 pm, FTP Admin wrote:
> Thanks for your reply.
>
> I supose that you mean the following:
>
> org.apache.commons.fileupload.MultipartStream
>
> concerning the apache file-upload library?
>
> Ben Souther wrote:
> > It sends them.
> > You'll need to read the documentation for the libraries that you are
> > using (O'Reilly, ASF, etc..) to learn how to retrieve them.
> >
> > On Wednesday 10 December 2003 04:40 pm, FTP Admin wrote:
> >>Kilic, Hakan wrote:
> >>
> >>Sorry, I'm using the FTP account. My name is Nick!
> >>
> >>So, there is no way to get these values with another method? This means
> >>that multipart/form-data doesn't send them at all?
> >>
> >>I actually did intend to use the apache file-upload and got into this
> >>problem cause multipart/form-data is requested!!! I didn't try the
> >>oreilly.com one but does this behave in a different way?
> >>
> >>Thanks
> >>
> >>>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)

--
Ben Souther
F.W. Davison & Company, Inc.



---------------------------------------------------------------------
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.