This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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.