Re: HttpServletResponse's getOutputStream() methtod.

2005-09-06 Thread Tim Funk
If you want to disable chunked encoding - you need to determine how much data 
you will send so setContentLength can be called.


-Tim

Saminda Abeyruwan wrote:

Hi all,

I'm using tomcat 5.0.28 in Linux environment.

In doPost(...) method i'm asking HttpServletResponse's output stream.  
Tomcat provide me with
*org.apache.coyote.tomcat5.CoyoteResponseFacade *getOutputStream(), 
which gives me a chunked output stream.  Providing  a chunked output  
stream  limited the flexibility of  interoperability with other systems, 
which would not support chunked stream.



Could someone pls sujest me a work around to get through with it. To get 
a standard outputStream out of prior rather a chunked output stream.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HttpServletResponse's getOutputStream() methtod.

2005-09-06 Thread Saminda Abeyruwan

Tim Funk wrote:

If you want to disable chunked encoding - you need to determine how 
much data you will send so setContentLength can be called.


-Tim


Hi Tim,

Thanks for the reply,

Is it something like,
response.setContentLength(1000);
OutputStream out = response.getOutputStream();

Yet, i would like to have a outputsteam without any chunking at all.

Saminda




Saminda Abeyruwan wrote:


Hi all,

I'm using tomcat 5.0.28 in Linux environment.

In doPost(...) method i'm asking HttpServletResponse's output 
stream.  Tomcat provide me with
*org.apache.coyote.tomcat5.CoyoteResponseFacade *getOutputStream(), 
which gives me a chunked output stream.  Providing  a chunked output  
stream  limited the flexibility of  interoperability with other 
systems, which would not support chunked stream.



Could someone pls sujest me a work around to get through with it. To 
get a standard outputStream out of prior rather a chunked output stream.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HttpServletResponse's getOutputStream() methtod.

2005-09-06 Thread Tim Funk
I thought if setContentLength() is used, then chunked encoding is not used. 
Is that not the case?


-Tim

Saminda Abeyruwan wrote:


Tim Funk wrote:

If you want to disable chunked encoding - you need to determine how 
much data you will send so setContentLength can be called.


-Tim



Hi Tim,

Thanks for the reply,

Is it something like,
response.setContentLength(1000);
OutputStream out = response.getOutputStream();

Yet, i would like to have a outputsteam without any chunking at all.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]