Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The buffer attribute in the page directive

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To my understanding, we have to use "kb" to specify the buffer attribute in the page directive. However, I have seen "k" instead of "kb" is used. Are both "k" and "kb" valid? or using "k" is wrong?
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've not seen "k" used. All the documentation for JSP 1.0, 1.1, and 1.2 say "kb", so probably safest to use that. Where did you see "k"?
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3819
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP specification 1.2 page 47, they've given an example:
<%@page language="java" import="com.myco.*" buffer="16k"%>
Further down, in the syntax for buffer, they've given: buffer="none|sizekb".
And in the explanation for 'buffer' on page 49, they've written that suffix 'kb' is mandatory.
So, I believe the first one is a typo and it is best to stick with kb.
HTH,
Paul.
------------------
SCJP2, SCWCD Resources, Free Question A Day, Mock Exam Results and More!
www.jdiscuss.com
Get Certified, Guaranteed!
JQPlus - For SCJP2
JWebPlus - For SCWCD
JDevPlus - For SCJD
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim and Paul, Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic