No problem :)
I found if you flush before any data is written, it will immediatly
commit the headers, and write a "terminal" chunk of length 0. Which
is a reasonable behavior.
In the case of a fat upload or page where one doesn't know the exact
length before starting and wants to avoid allocating a huge buffer,
one would want to use the chunked response.
PK
At 15:13 3/11/2007, you wrote:
Hi!
Yes ofcourse, you are right, I was to hasty.
Does it work if you add an os.flush() before the loop?
/Per Jonsson
Peter Kennard skrev:
That is not an error, the last item in the (for(;;here)) is
executed after the loop code is executed - the "side effect" only
has effect within the for statement. (;;(side effect only visible
inside statment in here))
ie: for(;;++i) ad for(;;i++) are equivalent
ie: for(;;val = ++i) ad for(;;val = i++) are *NOT* equivalent
At 05:36 3/11/2007, you wrote:
Hi!
You have a little error, you are using ++i instead of i++ on:
for(int i = 0; i < 5; ++i)
The first iteration is a 1 because the increament is done before
instead of after the looping.
---------------------------------------------------------------------
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]