You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Yasuo Itoh <da...@cresc.co.jp> on 2001/04/18 16:00:24 UTC

How do I get the contentLength in a JSP ?

Hello,

 I needs Content-Length for the i-Mode of NTT-DOCOM.

 I tried as follows at the last line in a JSP file. 

 <% response.setContentLength(out.getBufferSize() - out.getRemaining()); %>

 I got the length however the length is little bit smaller than correct length.

 Apche_1_3_14_WIN, jakarta-tomcat-3.2.1, jdk1.2.2

 Thank you,

( "Ichiro Suzuki" is No.1 !!)
-------------------------------------------
 Yasuo Itoh <da...@cresc.co.jp>
 office:Cresc Corporation <http://www.cresc.co.jp>
        4-5-12-201 Shiba Minato-ku Tokyo Japan 108-0014
        TEL/FAX 03-5484-7885
 home:  <da...@cts.ne.jp>
        <http://www1.cts.ne.jp/~danitoh>
-------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org