Re: HttpServletResponse.setContentLength() method in Tomcat 5.5.9

2005-09-15 Thread Julian Reschke
Ahab Abouzour wrote: Hello all, My servlet stopped working when I moved from Tomcat4.0.6 to Tomcat5.5.9. After investigating the problem, it turns out that if the HttpServletResponse.setContentLength() method is called, subsequent calls (e.g. setHeader(), addHeader(),addCookie()..etc) into the H

Re: HttpServletResponse.setContentLength() method in Tomcat 5.5.9

2005-09-15 Thread Tim Funk
This is expected behavior and there are bug reports (closed as INVALID) against this issue. The 2.5 servlet spec clarifies the use of setContentLength() and allows more headers to be set even if setContentLength(0) is called. -Tim Ahab Abouzour wrote: Hello all, My servlet stopped working