----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 4:59 PM
Subject: jasper2: @page buffer syntax


> One more ( today is my jaspers day :-):
>
> in Validator.PageDirectiveVisitor, there is a check for the syntax of the
> buffer attribute:
>
>   if (value == null || !value.endsWith("kb"))
>             err.jspError(n, "jsp.error.buffer.invalid");
>
> Well, my reading of the spec is that:
>
>  <%@page buffer="10" %>
> means 10 kb, and
>   buffer=none|8kb|sizekb
> is interpreted as an int that represents the size in kb, without
> requiring the 'kb' extension.
>
> The JSP1.1 ( and previous jaspers ) didn't require that ( AFAIK ), so
> that would brake backward compat. It'll also brake a lot of pages.
>

Unfortunately, Kin-Man is correct that the kb is required in JSP-1.2.

<spec-quote section="2.1">
The size can only be specified in kilobytes, and the suffix "kb" is
mandatory.
</spec-quote>


>
>
> Costin
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to