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" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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";
>  }
> }
>
> %>
> <html>
> <head>
>  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
>  <link rel="stylesheet" type="text/css" href="inc/eod.css">
>  <title><%=modeDisp%> Test Request</title>
> </head>
> <body>
>  m: <%=m%><BR>
>  flf: <%=flf%><BR>
>  <%
>  Enumeration enumeration = request.getParameterNames();
>   while (enumeration.hasMoreElements()) {
>      String name = (String)enumeration.nextElement();
>      %>
>      Feld: <%=name%> <BR>
>      <%
>   }
>   %>
>  <table class="tab1" cellspacing="0" cellpadding="0">
>    <tr class="zeile_header">
>        <td class="standardHeader" colspan="3"><%=modeDisp%> Test Request
> (<%=m%>)</td>
>    </tr>
>    <%
>    if(flf.equals("1")){
>    %>
>     <form name="HandleTR" action="HandleTest.jsp" method="post"
> enctype="multipart/form-data">
>       <tr><td colspan="3">fl <input type="submit" value="go!"></td></tr>
>       <input type="hidden" name="flf" value="0">
>       <input type="hidden" name="m" value="<%=m%>">
>     </form>
>    <%
>    } else {
>    %>
>      <tr><td colspan="3">kein fl</td></tr>
>    <%
>    }
>    %>
>  </table>
> </body>
> </html>
>
> The pages is submitted to itself.  flf is used to define two different
> contents.
>
> Thanx in advance
> Ön
>
> ----- Original Message ----- From: "Marc Farrow" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to