tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: jasper2: @page buffer syntax
Date Wed, 12 Jun 2002 00:53:00 GMT

----- Original Message -----
From: <costinm@covalent.net>
To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org>
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:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message