I need to find out a way to know the response content length in terms of characters.
I went through HttpServeletResponse API. There are headers methods - getHeader() and getHeaderNames() through which contentlength of the response is retrieved. However, these methods were included with servelt 3.0.
I need to find the response length in the terms of charaters or in size with servlet 2.5.
If there are no API defined methods, please suggest how to achieve this.