Nope, it's the JSP engine. The browsers are conforming to the HTML
standard.

Except after begin tags or before end tags, line ends are white space.

"Except within literal text (e.g. the PRE element), HTML treats contiguous
sequences of white space characters as being equivalent to a single space
character (ASCII decimal 32)." http://www.w3.org/TR/REC-html32

HTML 4.0 has a wordier but essentially equivalent rule in
http://www.w3.org/TR/REC-html40/struct/text.html#h-9.1.

Bob Foster
Symantec Internet Tools  http://www.visualcafe.com/


______________________________ Reply Separator _________________________________
Subject: Re: Use of out.println () for -%=
Author:  Son Nguyen <[EMAIL PROTECTED]> at Internet
Date:    5/10/99 5:48 AM


Noticed you used println() -- this will insert a carriage-return. Both IE
5.0 & Netscape 4.51 will render this as a space. Its the [undesire] behavior
from the browser not JSP engine.

>From: Foster Bob <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Use of out.println () for <%=
>Date: Thu, 6 May 1999 16:10:08 -0700
>
>The reference implementation uses out.println() for JSP expressions, e.g.,
>
>   test expr [<%=abc"%>]
>
>translates to something like:
>
>             out.write("test expr [");
>             out.println("abc");
>             out.write("]\r\n");
>
>This appears in a browser as:
>
>test expr [abc ]
>
>Note space before ]. This seems a pretty clear violation of 5.4(3):
>
>   An expression is transformed into a Java statement to insert the value
>of
>   the expression, converted to java.lang.String if needed, into the stream
>   currently named by the implicit variable out. No additional newlines or
>   space is included.
>
>(Thanks to Alex Vernet.)
>
>Bob
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JSP-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to