Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48290 invoked from network); 8 Jun 2006 06:16:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jun 2006 06:16:17 -0000 Received: (qmail 94069 invoked by uid 500); 8 Jun 2006 06:16:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 94046 invoked by uid 500); 8 Jun 2006 06:16:01 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 94035 invoked by uid 99); 8 Jun 2006 06:16:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 23:16:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 23:16:00 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FoDnp-0004fe-Oh for users@tomcat.apache.org; Thu, 08 Jun 2006 08:15:33 +0200 Received: from pool-71-107-249-190.lsanca.dsl-w.verizon.net ([71.107.249.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 08:15:33 +0200 Received: from wbarker by pool-71-107-249-190.lsanca.dsl-w.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Jun 2006 08:15:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@tomcat.apache.org From: "Bill Barker" Subject: Re: Fw: POST-Data from Form can not be read-out Date: Wed, 7 Jun 2006 23:15:41 -0700 Lines: 175 Message-ID: References: <000a01c68abf$d60c1320$800510ac@ATec.local> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pool-71-107-249-190.lsanca.dsl-w.verizon.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N If you need multipart/form-data, then you will also need a third-party module to process it (e.g. commons-fileupload: http://jakarta.apache.org/commons/fileupload/). Tomcat won't ever (unless the 2.6 Servlet spec changes things for TC 7.x :) attempt to parse the parameters from an enctype="multipart/form-data". "Oliver Enders" wrote in message news:000a01c68abf$d60c1320$800510ac@ATec.local... Hy Jon, hy Marc, after removing the enctype from the form tag it works fine !!! My problem will be, that in the next implementation step, i�ll need to add an type="file" form element to upload a file...and that is only possible with method="post" and enctype="multipart/form-data", isnt it ? How are these issues normaly implemented ? Perhaps that is an issue for a jsp mailing list... Thanx in advance �n -----Urspr�ngliche Nachricht----- Von: Jon Wingfield [mailto:jon.wingfield@mkodo.com] Gesendet: Mittwoch, 7. Juni 2006 17:31 An: Tomcat Users List Betreff: Re: Fw: POST-Data from Form can not be read-out What happens when you remove the enctype attribute from your form? The enctype you specified is for binary uploads. Tomcat doesn't automatically parse the http inputstream for parameters for this content type. HTH, Jon Oliver Enders wrote: > Browser is IE6.0, here�s the code: > > <% > String m = request.getParameter("m"); > String flf = request.getParameter("flf"); > String modeDisp = "Display"; > > if(flf == null){ > flf = "1"; > } > > if(m != null){ > if(m.equalsIgnoreCase("c")) { > modeDisp = "Create"; > } else if (m.equalsIgnoreCase("m")) { > modeDisp = "Modify"; > } else if (m.equalsIgnoreCase("d")) { > modeDisp = "Delete"; > } else { > modeDisp = "Display"; > } > } > > %> > > > > > <%=modeDisp%> Test Request > > > m: <%=m%>
> flf: <%=flf%>
> <% > Enumeration enumeration = request.getParameterNames(); > while (enumeration.hasMoreElements()) { > String name = (String)enumeration.nextElement(); > %> > Feld: <%=name%>
> <% > } > %> > > > > > <% > if(flf.equals("1")){ > %> > enctype="multipart/form-data"> > > > > > <% > } else { > %> > > <% > } > %> >
<%=modeDisp%> Test Request > (<%=m%>)
fl
kein fl
> > > > The pages is submitted to itself. flf is used to define two different > contents. > > Thanx in advance > �n > > ----- Original Message ----- From: "Marc Farrow" > To: "Tomcat Users List" > Sent: Wednesday, June 07, 2006 4:25 PM > Subject: Re: Fw: POST-Data from Form can not be read-out > > >> This could be any number of issues from browser bugs on. What browser >> are >> you using? Also, can you post the rendered HTML page that is >> submitting the >> request to the servlet? >> >> >> >> >> On 6/7/06, Oliver Enders wrote: >>> >>> >>> >>> >>> Hy List, >>> >>> I have a problem concerning submitting form-data by using POST. >>> >>> If I send the form using GET, the content of the form can be read out >>> using: >>> >>> request.getParameter("xyz"); >>> >>> If I change to POST, the parameters can not be read out. >>> >>> I�m using am Tomcat 4.1. >>> >>> Any Ideas ? Suggestions ? >>> >>> Thanx in advance >>> �n >>> >> >> >> >> -- >> Marc Farrow >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org