GeeCON Prague 2014*
The moose likes JSP and the fly likes How do you link 8k with 12264 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "How do you link 8k with 12264 ?" Watch "How do you link 8k with 12264 ?" New topic
Author

How do you link 8k with 12264 ?

Timothy Toe
Ranch Hand

Joined: Oct 19, 2002
Posts: 156
JSP Code :
------
<%@ page buffer="8k" %>
....
<% int bufferSize = out.getBufferSize(); %>
Buffer Size : <%= bufferSize %>

Output :
---------
Buffer Size : 12264

J2EE JavaDocs API:
---------------
From : javax\servlet\jsp\JspWriter.html#getBufferSize()
getBufferSize
public int getBufferSize()
This method returns the size of the buffer used by the JspWriter.
Returns:
the size of the buffer in bytes, or 0 is unbuffered.

Question:
---------
How is the calculation done ? I mean how do you link 8k with 12264 ?
 
GeeCON Prague 2014
 
subject: How do you link 8k with 12264 ?