Sebastiaan van Erk wrote:
Rémy Maucherat wrote:
On 4/26/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote:
Hi,

If the body of the POST request is not present at the time of the
getParameter() call, it returns null even if the parameter value is set.

Things don't work like this, obviously. Parameter parsing only occurs
if nothing used getReader or getInputStream. There's nothing to
document here: it will simply not parse.
There IS something to document. Please think yourself as well!
Nothing did use the getReader() or getInputStream() method.
I'm talking about using getParameter() *FIRST* thing in the BEGIN event.
GET parameters, ie parameters in the URL will work.
However, using Comet you shouldn't rely on parameters in the body, the body if for you usage, and your usage alone.

You can still invoke getReader or getInputStream without actually reading from it, if that causes the parse to happen.

I still need to rethink the "no read event" when the body comes in with the request package. btw, Remy is working on improving the available() method to actually return data should there be some, this will take care of the sentence above and also work around the blocking reads
Filip

Regards,
Sebastiaan
I think you should think over your emails a little bit more before posting.
And I think you should think over my emails a little bit more before posting. Also it would be nice if you answered some of the simple yes/no questions and not be so hostile.

Regards,
Sebastiaan

Rémy

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