----- Original Message -----
From: "Mike Cannon-Brookes" <[EMAIL PROTECTED]>


> My guess is that the bug lies in the combination of JSP +
Multipart-Encoded
> + Tags. I tried to do the exact same thing as yourself (create a tag to
> upload files) a few weeks ago and gave up after not being able to do it.
>
> If you do manage, or would like a hand / fellow coder to bounce ideas
off -
> give me a bell.

The difference has nothing to do with GET or POST.  The issue is that the
POST is multipart/form-data encoded.  This encodes the post very differently
which the servlet API (and accordingly JSPs) do not support.  It does not
matter whether you're checking a file parameter or a "normal" parameter...
the entire form is encoded the same way.

You'll have to use a utility class or something to parse the input stream
from the request and read the parameter data.  I've got a tag library that
detects whether the form was multipart/form-data and accordingly parse the
data

Serge Knystautas
Loki Technologies
http://www.lokitech.com/


Reply via email to