|
AW: Help! multipart/form-data use GET, not POST: msg#00031text.xml.resin.user
Hello Hiroshi, this is not a resin problem. If you specify the enctype 'multipart/form-data' the parameters are send via the ServletInputStream. You must access it with request.getInputStream(). Handicap with this method is that you have to parse this stream by your own (or use for example the oreily-classes cos.jar). If you do not need the enctype 'multipart/form-data' just leave it away and you can use the request.getParameter()-method. Just try it. Greetings Thorsten -----Ursprüngliche Nachricht----- Von: Hiroshi Iwatani [mailto:HGA03630@xxxxxxxxxxx] Gesendet: Donnerstag, 4. März 2004 11:15 An: resin-interest Betreff: Help! multipart/form-data use GET, not POST In a routine common HTML form: <FORM ACTION="/servlet/BlahBlah" ENCTYPE="multipart/form-data"> input data are sent via GET, not POST. That is very incovenient because of URL encoding. However, if we explicitly specify the POST method, <FORM ACTION="/servlet/BlahBlah" METHOD="POST" ENCTYPE="multipart/form-data"> data are not sent from the client and every response.getParameter() is null. I'd like to hear what do you guess/suspect could be the cause of this malfunctioning? I'm using Resin 2.1.12. Thanks in advane, --------------------- Hiroshi Iwatani *stop cruelty* Annual number of institutionally euthanized cats and dogs including kittens and puppies: US 5 million, JP 500 thousand. How about your country? *for our better karma* --------------------- |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Help! multipart/form-data use GET, not POST: 00031, Hiroshi Iwatani |
|---|---|
| Next by Date: | Re: Help! multipart/form-data use GET, not POST: 00031, Bond - James D. |
| Previous by Thread: | Help! multipart/form-data use GET, not POSTi: 00031, Hiroshi Iwatani |
| Next by Thread: | Re: Help! multipart/form-data uses GET, not POST: 00031, Hiroshi Iwatani |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |