Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do you link 8k with 12264 ?

 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic