Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The buffer attribute in the page directive  RSS feed

 
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 Foreman
Posts: 3987
31
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!