I am trying to get the size of the output of a JSP page. Earlier when I was just using Servlet to display the HTML output, I used to know how many bytes of output I have in the buffer. Now with JSP, I tried doing an output of (out.getBufferSize()-out.getRemaining()) . This gives me a negative number -7628
"Buffer's Size is 8192 Number of Unused Bytes in the buffer is 15972 So the Size of the Page is -7628 ".

Please help me in getting the size of the output of JSP page from JSP.